- add(E) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
-
- addAll(Collection<? extends E>) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
-
- ageOf(K, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
-
Returns the age of the entry based on the expiration policy.
- ageOf(K) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
-
Returns the age of the entry based on the expiration policy.
- asMap() - Method in interface com.github.benmanes.caffeine.cache.AsyncCache
-
Returns a view of the entries stored in this cache as a thread-safe map.
- asMap() - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
-
Returns a view of the entries stored in this cache as a thread-safe map.
- asMap() - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns a view of the entries stored in this cache as a thread-safe map.
- AsyncCache<K,V> - Interface in com.github.benmanes.caffeine.cache
-
A semi-persistent mapping from keys to values.
- AsyncCacheLoader<K,V> - Interface in com.github.benmanes.caffeine.cache
-
Computes or retrieves values asynchronously, based on a key, for use in populating a
AsyncLoadingCache
.
- asyncLoad(K, Executor) - Method in interface com.github.benmanes.caffeine.cache.AsyncCacheLoader
-
Asynchronously computes or retrieves the value corresponding to key
.
- asyncLoad(K, Executor) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
-
Asynchronously computes or retrieves the value corresponding to key
.
- asyncLoadAll(Iterable<? extends K>, Executor) - Method in interface com.github.benmanes.caffeine.cache.AsyncCacheLoader
-
Asynchronously computes or retrieves the values corresponding to keys
.
- asyncLoadAll(Iterable<? extends K>, Executor) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
-
Asynchronously computes or retrieves the values corresponding to keys
.
- AsyncLoadingCache<K,V> - Interface in com.github.benmanes.caffeine.cache
-
A semi-persistent mapping from keys to values.
- asyncReload(K, V, Executor) - Method in interface com.github.benmanes.caffeine.cache.AsyncCacheLoader
-
Asynchronously computes or retrieves a replacement value corresponding to an already-cached
key
.
- asyncReload(K, V, Executor) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
-
Asynchronously computes or retrieves a replacement value corresponding to an already-cached
key
.
- averageLoadPenalty() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns the average time spent loading new values.
- empty() - Static method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns a statistics instance where no cache events have been recorded.
- equals(Object) - Method in class com.github.benmanes.caffeine.cache.CaffeineSpec
-
- equals(Object) - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
- estimatedSize() - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns the approximate number of entries in this cache.
- eviction() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the maximum size or maximum weight eviction
policy.
- evictionCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns the number of times an entry has been evicted.
- evictionWeight() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns the sum of weights of evicted entries.
- executor(Executor) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies the executor to use when running asynchronous tasks.
- expireAfter(Expiry<? super K1, ? super V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies that each entry should be automatically removed from the cache once a duration has
elapsed after the entry's creation, the most recent replacement of its value, or its last
read.
- expireAfterAccess(Duration) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, the most recent replacement of its value, or its last
access.
- expireAfterAccess(long, TimeUnit) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, the most recent replacement of its value, or its last
read.
- expireAfterAccess() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the time-to-idle expiration policy.
- expireAfterCreate(K, V, long) - Method in interface com.github.benmanes.caffeine.cache.Expiry
-
Specifies that the entry should be automatically removed from the cache once the duration has
elapsed after the entry's creation.
- expireAfterRead(K, V, long, long) - Method in interface com.github.benmanes.caffeine.cache.Expiry
-
Specifies that the entry should be automatically removed from the cache once the duration has
elapsed after its last read.
- expireAfterUpdate(K, V, long, long) - Method in interface com.github.benmanes.caffeine.cache.Expiry
-
Specifies that the entry should be automatically removed from the cache once the duration has
elapsed after the replacement of its value.
- expireAfterWrite(Duration) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, or the most recent replacement of its value.
- expireAfterWrite(long, TimeUnit) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, or the most recent replacement of its value.
- expireAfterWrite() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the time-to-live expiration policy.
- expireVariably() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the variable expiration policy.
- Expiry<K,V> - Interface in com.github.benmanes.caffeine.cache
-
Calculates when cache entries expire.
- get(K, Function<? super K, ? extends V>) - Method in interface com.github.benmanes.caffeine.cache.AsyncCache
-
Returns the future associated with key
in this cache, obtaining that value from
mappingFunction
if necessary.
- get(K, BiFunction<? super K, Executor, CompletableFuture<V>>) - Method in interface com.github.benmanes.caffeine.cache.AsyncCache
-
Returns the future associated with key
in this cache, obtaining that value from
mappingFunction
if necessary.
- get(K) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
-
- get(K, Function<? super K, ? extends V>) - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns the value associated with the key
in this cache, obtaining that value from the
mappingFunction
if necessary.
- get(K) - Method in interface com.github.benmanes.caffeine.cache.LoadingCache
-
Returns the value associated with the
key
in this cache, obtaining that value from
CacheLoader.load(Object)
if necessary.
- getAll(Iterable<? extends K>) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
-
Returns the future of a map of the values associated with keys
, creating or retrieving
those values if necessary.
- getAll(Iterable<? extends K>) - Method in interface com.github.benmanes.caffeine.cache.LoadingCache
-
Returns a map of the values associated with the keys
, creating or retrieving those
values if necessary.
- getAllPresent(Iterable<?>) - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns a map of the values associated with the keys
in this cache.
- getExpiresAfter(TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
-
Returns the fixed duration used to determine if an entry should be automatically removed due
to elapsing this time bound.
- getExpiresAfter() - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
-
Returns the fixed duration used to determine if an entry should be automatically removed due
to elapsing this time bound.
- getExpiresAfter(K, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
-
Returns the duration until the entry should be automatically removed.
- getExpiresAfter(K) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
-
Returns the duration until the entry should be automatically removed.
- getIfPresent(Object) - Method in interface com.github.benmanes.caffeine.cache.AsyncCache
-
Returns the future associated with key
in this cache, or null
if there is no
cached future for key
.
- getIfPresent(Object) - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns the value associated with the key
in this cache, or null
if there is no
cached value for the key
.
- getMaximum() - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
-
Returns the maximum total weighted or unweighted size of this cache, depending on how the
cache was constructed.
- guardedStatsCounter(StatsCounter) - Static method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
-
Returns an accumulator that suppresses and logs any exception thrown by the delegate
statsCounter.
- parse(String) - Static method in class com.github.benmanes.caffeine.cache.CaffeineSpec
-
Creates a CaffeineSpec from a string.
- peek() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
-
- plus(CacheStats) - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns a new CacheStats
representing the sum of this CacheStats
and
other
.
- policy() - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns access to inspect and perform low-level operations on this cache based on its runtime
characteristics.
- Policy<K,V> - Interface in com.github.benmanes.caffeine.cache
-
An access point for inspecting and performing low-level operations based on the cache's runtime
characteristics.
- Policy.Eviction<K,V> - Interface in com.github.benmanes.caffeine.cache
-
The low-level operations for a cache with a size-based eviction policy.
- Policy.Expiration<K,V> - Interface in com.github.benmanes.caffeine.cache
-
The low-level operations for a cache with a fixed expiration policy.
- Policy.VarExpiration<K,V> - Interface in com.github.benmanes.caffeine.cache
-
The low-level operations for a cache with a variable expiration policy.
- poll() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
-
- put(K, CompletableFuture<V>) - Method in interface com.github.benmanes.caffeine.cache.AsyncCache
-
Associates value
with key
in this cache.
- put(K, V) - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Associates the value
with the key
in this cache.
- put(K, V, long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
-
Associates the value
with the key
in this cache.
- put(K, V, Duration) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
-
Associates the value
with the key
in this cache.
- putAll(Map<? extends K, ? extends V>) - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Copies all of the mappings from the specified map to the cache.
- putIfAbsent(K, V, long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
-
Associates the value
with the key
in this cache if the specified key is not
already associated with a value.
- putIfAbsent(K, V, Duration) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
-
Associates the value
with the key
in this cache if the specified key is not
already associated with a value.
- read() - Method in interface com.github.benmanes.caffeine.cache.Ticker
-
Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
- recordEviction() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
-
- recordEviction(int) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
-
- recordEviction() - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
-
- recordEviction(int) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
-
Records the eviction of an entry from the cache.
- recordHits(int) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
-
- recordHits(int) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
-
Records cache hits.
- recordLoadFailure(long) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
-
- recordLoadFailure(long) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
-
Records the failed load of a new entry.
- recordLoadSuccess(long) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
-
- recordLoadSuccess(long) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
-
Records the successful load of a new entry.
- recordMisses(int) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
-
- recordMisses(int) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
-
Records cache misses.
- recordStats() - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Enables the accumulation of
CacheStats
during the operation of the cache.
- recordStats(Supplier<? extends StatsCounter>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Enables the accumulation of
CacheStats
during the operation of the cache.
- refresh(K) - Method in interface com.github.benmanes.caffeine.cache.LoadingCache
-
Loads a new value for the key
, asynchronously.
- refreshAfterWrite(Duration) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies that active entries are eligible for automatic refresh once a fixed duration has
elapsed after the entry's creation, or the most recent replacement of its value.
- refreshAfterWrite(long, TimeUnit) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies that active entries are eligible for automatic refresh once a fixed duration has
elapsed after the entry's creation, or the most recent replacement of its value.
- refreshAfterWrite() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the time-to-live refresh policy.
- reload(K, V) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
-
Computes or retrieves a replacement value corresponding to an already-cached key
.
- RemovalCause - Enum in com.github.benmanes.caffeine.cache
-
The reason why a cached entry was removed.
- removalListener(RemovalListener<? super K1, ? super V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies a listener instance that caches should notify each time an entry is removed for any
reason.
- RemovalListener<K,V> - Interface in com.github.benmanes.caffeine.cache
-
An object that can receive a notification when an entry is removed from a cache.
- requestCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns the number of times
Cache
lookup methods have returned either a cached or
uncached value.