- 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
-
- 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
-
- 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
-
- 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.
- 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.