Class LoadingCache<K,KK,V>

java.lang.Object
org.springframework.cglib.core.internal.LoadingCache<K,KK,V>

public class LoadingCache<K,KK,V> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • identity

      public static <K> Function<K,K> identity()
    • get

      public V get(K key)
    • createEntry

      protected V createEntry(K key, KK cacheKey, Object v)
      Loads entry to the cache. If entry is missing, put FutureTask first so other competing thread might wait for the result.
      Parameters:
      key - original key that would be used to load the instance
      cacheKey - key that would be used to store the entry in internal map
      v - null or FutureTask<V>
      Returns:
      newly created instance