Interface NonKeyEvictableLoadingCache<K,V>

All Superinterfaces:
com.google.common.cache.Cache<K,V>, com.google.common.base.Function<K,V>, Function<K,V>, com.google.common.cache.LoadingCache<K,V>
All Known Subinterfaces:
NonEvictableLoadingCache<K,V>

public interface NonKeyEvictableLoadingCache<K,V> extends com.google.common.cache.LoadingCache<K,V>
A LoadingCache that does not support key-based eviction.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Not supported.
    void
    Invalidates all live entries in the cache.
    void
    Deprecated.
    Not supported.
    void
    Deprecated.

    Methods inherited from interface com.google.common.cache.Cache

    cleanUp, get, getAllPresent, getIfPresent, put, putAll, size, stats

    Methods inherited from interface com.google.common.base.Function

    equals

    Methods inherited from interface java.util.function.Function

    andThen, compose

    Methods inherited from interface com.google.common.cache.LoadingCache

    apply, asMap, get, getAll, getUnchecked, refresh
  • Method Details

    • invalidate

      @Deprecated void invalidate(Object key)
      Deprecated.
      Not supported. Use EvictableCacheBuilder to build a cache instead.
      Specified by:
      invalidate in interface com.google.common.cache.Cache<K,V>
    • unsafeInvalidate

      @Deprecated void unsafeInvalidate(Object key)
      Deprecated.
      Allows invalidation for a key, but does not invalidate ongoing loads. It is caller responsibility to ensure correct use. The method is deprecated to discourage the usage of it. Use EvictableCacheBuilder to build a cache instead.
    • invalidateAll

      @Deprecated void invalidateAll(Iterable<?> keys)
      Deprecated.
      Not supported. Use EvictableCacheBuilder to build a cache instead.
      Specified by:
      invalidateAll in interface com.google.common.cache.Cache<K,V>
    • invalidateAll

      void invalidateAll()
      Invalidates all live entries in the cache. Ongoing loads may not be invalidated, so subsequent get from the cache is not guaranteed to return fresh state. Must not be relied on for correctness, but can be used for manual intervention, e.g. as a method exposed over JMX.
      Specified by:
      invalidateAll in interface com.google.common.cache.Cache<K,V>