Skip navigation links
A B C D E G H I L M N O P R S T U V W Y 

A

add(E) - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
 
add(E) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
addAll(Collection<? extends E>) - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
 
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.
asLifoQueue() - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
Returns a view as a last-in-first-out (LIFO) Queue.
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.
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.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.
averageLoadPenalty() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the average time spent loading new values.

B

bounded(Weigher<K, V>) - Static method in interface com.github.benmanes.caffeine.cache.Weigher
Returns a weigher that enforces that the weight is non-negative.
build() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Builds a cache which does not automatically load values when keys are requested.
build(CacheLoader<? super K1, V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Builds a cache, which either returns an already-loaded value for a given key or atomically computes or retrieves it using the supplied CacheLoader.
buildAsync(CacheLoader<? super K1, V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Builds a cache, which either returns a CompletableFuture already loaded or currently computing the value for a given key or atomically computes the value asynchronously through a supplied mapping function or the supplied CacheLoader.

C

Cache<K,V> - Interface in com.github.benmanes.caffeine.cache
A semi-persistent mapping from keys to values.
CacheLoader<K,V> - Interface in com.github.benmanes.caffeine.cache
Computes or retrieves values, based on a key, for use in populating a LoadingCache or AsyncLoadingCache.
CacheStats - Class in com.github.benmanes.caffeine.cache.stats
Statistics about the performance of a Cache.
CacheStats(long, long, long, long, long, long) - Constructor for class com.github.benmanes.caffeine.cache.stats.CacheStats
Constructs a new CacheStats instance.
CacheWriter<K,V> - Interface in com.github.benmanes.caffeine.cache
Communicates the write or deletion of a value, based on a key, to an external resource.
Caffeine<K,V> - Class in com.github.benmanes.caffeine.cache
A builder of AsyncLoadingCache, LoadingCache, and Cache instances having a combination of the following features: automatic loading of entries into the cache, optionally asynchronously least-recently-used eviction when a maximum size is exceeded time-based expiration of entries, measured since last access or last write keys automatically wrapped in weak references values automatically wrapped in weak or soft references writes propagated to an external resource notification of evicted (or otherwise removed) entries accumulation of cache access statistics
cleanUp() - Method in interface com.github.benmanes.caffeine.cache.Cache
Performs any pending maintenance operations needed by the cache.
clear() - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
 
coldest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
com.github.benmanes.caffeine - package com.github.benmanes.caffeine
Utility classes commonly useful in concurrent programming.
com.github.benmanes.caffeine.base - package com.github.benmanes.caffeine.base
Basic utility libraries and interfaces.
com.github.benmanes.caffeine.cache - package com.github.benmanes.caffeine.cache
This package contains caching utilities.
com.github.benmanes.caffeine.cache.stats - package com.github.benmanes.caffeine.cache.stats
This package contains caching statistic utilities.
com.github.benmanes.caffeine.locks - package com.github.benmanes.caffeine.locks
Specialized locks not provided by java.util.concurrent.locks.
ConcurrentLinkedStack<E> - Class in com.github.benmanes.caffeine
An unbounded thread-safe stack based on linked nodes.
ConcurrentStatsCounter - Class in com.github.benmanes.caffeine.cache.stats
A thread-safe StatsCounter implementation for use by Cache implementors.
ConcurrentStatsCounter() - Constructor for class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
Constructs an instance with all counts initialized to zero.
contains(Object) - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
 
contains(Object) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 

D

delete(K, V, RemovalCause) - Method in interface com.github.benmanes.caffeine.cache.CacheWriter
Deletes the value corresponding to the key from the external resource.
DisabledStatsCounter - Enum in com.github.benmanes.caffeine.cache.stats
A StatsCounter implementation that does not record any cache events.
disabledTicker() - Static method in interface com.github.benmanes.caffeine.cache.Ticker
 
disabledWriter() - Static method in interface com.github.benmanes.caffeine.cache.CacheWriter
Returns a writer that does nothing.

E

equals(Object) - Method in class com.github.benmanes.caffeine.cache.RemovalNotification
 
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.
executor(Executor) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the executor to use when running asynchronous tasks.
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.
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.

G

get(K, Function<? super K, ? extends V>) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
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.AsyncLoadingCache
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
Returns the future associated with key in this cache, obtaining that value from CacheLoader.asyncLoad(K, java.util.concurrent.Executor) if necessary.
get(K, Function<? super K, ? extends V>) - Method in interface com.github.benmanes.caffeine.cache.Cache
Returns the value associated with key in this cache, obtaining that value from mappingFunction if necessary.
get(K) - Method in interface com.github.benmanes.caffeine.cache.LoadingCache
Returns the value associated with key in this cache, obtaining that value from CacheLoader.load(Object) if necessary.
get() - Static method in enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
 
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 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 keys in this cache.
getCause() - Method in class com.github.benmanes.caffeine.cache.RemovalNotification
 
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.
getIfPresent(Object) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
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 key in this cache, or null if there is no cached value for key.
getKey() - Method in class com.github.benmanes.caffeine.cache.RemovalNotification
Returns the key of the removed entry or null if it was garbage collected due to Caffeine.weakKeys() eviction.
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.
getOwner() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Returns the thread that currently owns this lock, or null if not owned.
getQueuedThreads() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Returns a collection containing threads that may be waiting to acquire this lock.
getQueueLength() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Returns an estimate of the number of threads waiting to acquire this lock.
getValue() - Method in class com.github.benmanes.caffeine.cache.RemovalNotification
Returns the key of the removed entry or null if it was garbage collected due to Caffeine.weakValues() or Caffeine.softValues() eviction.
getWaitingThreads(Condition) - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Returns a collection containing those threads that may be waiting on the given condition associated with this lock.
getWaitQueueLength(Condition) - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Returns an estimate of the number of threads waiting on the given condition associated with this lock.

H

hashCode() - Method in class com.github.benmanes.caffeine.cache.RemovalNotification
 
hashCode() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
 
hasQueuedThread(Thread) - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Queries whether the given thread is waiting to acquire this lock.
hasQueuedThreads() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Queries whether any threads are waiting to acquire this lock.
hasWaiters(Condition) - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Queries whether any threads are waiting on the given condition associated with this lock.
hitCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods have returned a cached value.
hitRate() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the ratio of cache requests which were hits.
hottest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.

I

incrementBy(StatsCounter) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
Increments all counters by the values in other.
initialCapacity(int) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Sets the minimum total size for the internal hash tables.
invalidate(Object) - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards any cached value for key key.
invalidateAll(Iterable<?>) - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards any cached values for keys keys.
invalidateAll() - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards all entries in the cache.
isEmpty() - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
 
isEmpty() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
isHeldByCurrentThread() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Queries if this lock is held by the current thread.
isLocked() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Queries if this lock is held by any thread.
isWeighted() - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns whether the cache is bounded by a maximum size or maximum weight.
iterator() - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
 
iterator() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 

L

linearizable() - Static method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
Creates a stack with a linearizable backoff strategy.
linearizable() - Static method in class com.github.benmanes.caffeine.SingleConsumerQueue
Creates a queue with a linearizable backoff strategy.
load(K) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Computes or retrieves the value corresponding to key.
loadAll(Iterable<? extends K>) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Computes or retrieves the values corresponding to keys.
loadCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the total number of times that Cache lookup methods attempted to load new values.
loadFailureCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods failed to load a new value, either because no value was found or an exception was thrown while loading.
loadFailureRate() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the ratio of cache loading attempts which threw exceptions.
LoadingCache<K,V> - Interface in com.github.benmanes.caffeine.cache
A semi-persistent mapping from keys to values.
loadSuccessCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods have successfully loaded a new value.
lock() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
 
lockInterruptibly() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
 

M

maximumSize(long) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the maximum number of entries the cache may contain.
maximumWeight(long) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the maximum weight of entries the cache may contain.
minus(CacheStats) - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns a new CacheStats representing the difference between this CacheStats and other.
missCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods have returned an uncached (newly loaded) value, or null.
missRate() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the ratio of cache requests which were misses.

N

name(Supplier<String>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the supplier that provides the name of the cache.
newBuilder() - Static method in class com.github.benmanes.caffeine.cache.Caffeine
Constructs a new Caffeine instance with default settings, including strong keys, strong values, and no automatic eviction of any kind.
newCondition() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
 
NonReentrantLock - Class in com.github.benmanes.caffeine.locks
A non-reentrant mutual exclusion Lock.
NonReentrantLock() - Constructor for class com.github.benmanes.caffeine.locks.NonReentrantLock
 

O

objectFieldOffset(Class<?>, String) - Static method in class com.github.benmanes.caffeine.base.UnsafeAccess
Returns the location of a given static field.
offer(E) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
oldest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
onRemoval(RemovalNotification<K, V>) - Method in interface com.github.benmanes.caffeine.cache.RemovalListener
Notifies the listener that a removal occurred at some point in the past.
optimistic() - Static method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
Creates a stack with an optimistic backoff strategy.
optimistic() - Static method in class com.github.benmanes.caffeine.SingleConsumerQueue
Creates a queue with an optimistic backoff strategy.

P

peek() - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
Retrieves, but does not remove, the top of the stack (in other words, the last element pushed), or returns null if this stack is empty.
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 expiration policy.
poll() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
pop() - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
Removes and returns the top element or returns null if this stack is empty.
push(E) - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
Pushes an element onto the stack (in other words, adds an element at the top of this stack).
put(K, CompletableFuture<V>) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
Associates value with key in this cache.
put(K, V) - Method in interface com.github.benmanes.caffeine.cache.Cache
Associates value with 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.

R

read() - Method in interface com.github.benmanes.caffeine.cache.Ticker
 
recordEviction() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordEviction() - Method in enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
 
recordEviction() - 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 enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
 
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 enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
 
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 enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
 
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 enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
 
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
Enable 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 key key, asynchronously.
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.
RemovalNotification<K,V> - Class in com.github.benmanes.caffeine.cache
A notification of the removal of a single entry.
RemovalNotification(K, V, RemovalCause) - Constructor for class com.github.benmanes.caffeine.cache.RemovalNotification
Creates an entry representing a mapping from the specified key to the specified value.
remove(Object) - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
 
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.

S

setExpiresAfter(long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed based.
setMaximum(long) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Specifies the maximum total size of this cache.
setValue(V) - Method in class com.github.benmanes.caffeine.cache.RemovalNotification
 
SingleConsumerQueue<E> - Class in com.github.benmanes.caffeine
A lock-free unbounded queue based on linked nodes that supports concurrent producers and is restricted to a single consumer.
singleton() - Static method in interface com.github.benmanes.caffeine.cache.Weigher
Returns a weigher where an entry has a weight of 1.
size() - Method in class com.github.benmanes.caffeine.ConcurrentLinkedStack
Returns the number of elements in this stack.
size() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
snapshot() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
snapshot() - Method in enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
 
snapshot() - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Returns a snapshot of this counter's values.
softValues() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies that each value (not key) stored in the cache should be wrapped in a SoftReference (by default, strong references are used).
stats() - Method in interface com.github.benmanes.caffeine.cache.Cache
Returns a current snapshot of this cache's cumulative statistics.
StatsCounter - Interface in com.github.benmanes.caffeine.cache.stats
Accumulates statistics during the operation of a Cache for presentation by Cache.stats().
synchronous() - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
Returns a view of the entries stored in this cache as a synchronous LoadingCache.
systemTicker() - Static method in interface com.github.benmanes.caffeine.cache.Ticker
 

T

ticker(Ticker) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies a nanosecond-precision time source for use in determining when entries should be expired or refreshed.
Ticker - Interface in com.github.benmanes.caffeine.cache
A time source that returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.
toString() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Returns a string representation for this Caffeine instance.
toString() - Method in class com.github.benmanes.caffeine.cache.RemovalNotification
Returns a string representation of the form {key}={value}.
toString() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
 
toString() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
toString() - Method in enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
 
toString() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
Returns a string identifying this lock, as well as its lock state.
totalLoadTime() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the total number of nanoseconds the cache has spent loading new values.
tryLock() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
 
tryLock(long, TimeUnit) - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
 

U

unlock() - Method in class com.github.benmanes.caffeine.locks.NonReentrantLock
 
UNSAFE - Static variable in class com.github.benmanes.caffeine.base.UnsafeAccess
The Unsafe instance.
UnsafeAccess - Class in com.github.benmanes.caffeine.base
Static access to Unsafe and convenient utility methods for performing low-level, unsafe operations.

V

valueOf(String) - Static method in enum com.github.benmanes.caffeine.cache.RemovalCause
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.benmanes.caffeine.cache.RemovalCause
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.benmanes.caffeine.cache.stats.DisabledStatsCounter
Returns an array containing the constants of this enum type, in the order they are declared.

W

wasEvicted() - Method in enum com.github.benmanes.caffeine.cache.RemovalCause
Returns true if there was an automatic removal due to eviction (the cause is neither RemovalCause.EXPLICIT nor RemovalCause.REPLACED).
wasEvicted() - Method in class com.github.benmanes.caffeine.cache.RemovalNotification
Returns true if there was an automatic removal due to eviction (the cause is neither RemovalCause.EXPLICIT nor RemovalCause.REPLACED).
weakKeys() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies that each key (not value) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
weakValues() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies that each value (not key) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
weigh(K, V) - Method in interface com.github.benmanes.caffeine.cache.Weigher
Returns the weight of a cache entry.
weigher(Weigher<? super K1, ? super V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the weigher to use in determining the weight of entries.
Weigher<K,V> - Interface in com.github.benmanes.caffeine.cache
Calculates the weights of cache entries.
weightedSize() - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns the approximate accumulated weight of entries in this cache.
write(K, V) - Method in interface com.github.benmanes.caffeine.cache.CacheWriter
Writes the value corresponding to the key to the external resource.
writer(CacheWriter<? super K1, ? super V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies a writer instance that caches should notify each time an entry is explicitly created or modified, or removed for any reason.

Y

youngest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
A B C D E G H I L M N O P R S T U V W Y 
Skip navigation links