Class CaffeinatedGuavaLoadingCache<K,V>

java.lang.Object
com.github.benmanes.caffeine.guava.CaffeinatedGuavaCache<K,V>
com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache<K,V>
All Implemented Interfaces:
com.google.common.base.Function<K,V>, com.google.common.cache.Cache<K,V>, com.google.common.cache.LoadingCache<K,V>, Serializable, Function<K,V>

final class CaffeinatedGuavaLoadingCache<K,V> extends CaffeinatedGuavaCache<K,V> implements com.google.common.cache.LoadingCache<K,V>
A Caffeine-backed loading cache through a Guava facade.
  • Field Details

  • Constructor Details

    • CaffeinatedGuavaLoadingCache

      CaffeinatedGuavaLoadingCache(LoadingCache<K,V> cache)
  • Method Details

    • get

      public V get(K key) throws ExecutionException
      Specified by:
      get in interface com.google.common.cache.LoadingCache<K,V>
      Throws:
      ExecutionException
    • getUnchecked

      public V getUnchecked(K key)
      Specified by:
      getUnchecked in interface com.google.common.cache.LoadingCache<K,V>
    • getAll

      public com.google.common.collect.ImmutableMap<K,V> getAll(Iterable<? extends K> keys) throws ExecutionException
      Specified by:
      getAll in interface com.google.common.cache.LoadingCache<K,V>
      Throws:
      ExecutionException
    • apply

      public V apply(@NonNull K key)
      Specified by:
      apply in interface com.google.common.base.Function<K,V>
      Specified by:
      apply in interface Function<K,V>
      Specified by:
      apply in interface com.google.common.cache.LoadingCache<K,V>
    • refresh

      public void refresh(K key)
      Specified by:
      refresh in interface com.google.common.cache.LoadingCache<K,V>