Index

A B C D E F G H I J L M N O P R S T U V W Y 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractCopier<A> - Class in com.github.benmanes.caffeine.jcache.copy
A skeleton implementation where subclasses provide the serialization strategy.
AbstractCopier() - Constructor for class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
 
AbstractCopier(Set, Map) - Constructor for class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
 
Action - Enum Class in com.github.benmanes.caffeine.jcache.processor
The dominant action that was performed on the entry during processing.
add(E) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
Deprecated.
 
addAll(Collection) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
Deprecated.
 
addCacheEntryListenerConfiguration(CacheEntryListenerConfiguration) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.addCacheEntryListenerConfiguration(CacheEntryListenerConfiguration).
ageOf(K) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Returns the age of the entry based on the expiration policy.
ageOf(K, TimeUnit) - 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, Executor) - Method in interface com.github.benmanes.caffeine.cache.AsyncCacheLoader
Asynchronously computes or retrieves the values corresponding to keys.
asyncLoadAll(Iterable, 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.
awaitSynchronous() - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Blocks until all of the synchronous listeners have finished processing the events this thread published.

B

boundedWeigher(Weigher) - 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 unless a mapping function is provided.
build(CacheLoader) - 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.
build(Caffeine) - Static method in class com.github.benmanes.caffeine.guava.CaffeinatedGuava
Returns a Caffeine cache wrapped in a Guava Cache facade.
build(Caffeine, CacheLoader) - Static method in class com.github.benmanes.caffeine.guava.CaffeinatedGuava
Returns a Caffeine cache wrapped in a Guava LoadingCache facade.
build(Caffeine, CacheLoader) - Static method in class com.github.benmanes.caffeine.guava.CaffeinatedGuava
Returns a Caffeine cache wrapped in a Guava LoadingCache facade.
buildAsync() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Builds a cache which does not automatically load values when keys are requested unless a mapping function is provided.
buildAsync(AsyncCacheLoader) - 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 AsyncCacheLoader.
buildAsync(CacheLoader) - 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 - Variable in class com.github.benmanes.caffeine.jcache.CacheProxy
 
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.
CacheManagerImpl - Class in com.github.benmanes.caffeine.jcache
An implementation of JSR-107 CacheManager that manages Caffeine-based caches.
CacheManagerImpl(CachingProvider, URI, ClassLoader, Properties) - Constructor for class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
cacheNames(Config) - Static method in class com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator
Retrieves the names of the caches defined in the configuration resource.
CacheProxy<K,V> - Class in com.github.benmanes.caffeine.jcache
An implementation of JSR-107 Cache backed by a Caffeine cache.
CacheProxy(String, Executor, CacheManager, CaffeineConfiguration, Cache, EventDispatcher, Optional, ExpiryPolicy, Ticker, JCacheStatisticsMXBean) - Constructor for class com.github.benmanes.caffeine.jcache.CacheProxy
 
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
Deprecated.
This constructor is scheduled for removal in version 3.0.0.
CacheStats(long, long, long, long, long, long, long) - Constructor for class com.github.benmanes.caffeine.cache.stats.CacheStats
Deprecated.
CacheWriter<K,V> - Interface in com.github.benmanes.caffeine.cache
Deprecated.
Scheduled for removal in version 3.0.0. Consider instead using Map compute methods for extending manual write and remove operations, and using Caffeine.evictionListener(RemovalListener) for extending removals due to eviction.
CaffeinatedGuava - Class in com.github.benmanes.caffeine.guava
An adapter to expose a Caffeine cache through the Guava interfaces.
Caffeine<K,V> - Class in com.github.benmanes.caffeine.cache
A builder of Cache, LoadingCache, AsyncCache, and AsyncLoadingCache instances having a combination of the following features: automatic loading of entries into the cache, optionally asynchronously size-based eviction when a maximum is exceeded based on frequency and recency time-based expiration of entries, measured since last access or last write asynchronously refresh when the first stale request for an entry occurs 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
CaffeineCachingProvider - Class in com.github.benmanes.caffeine.jcache.spi
A provider that produces a JCache implementation backed by Caffeine.
CaffeineCachingProvider() - Constructor for class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
CaffeineConfiguration<K,V> - Class in com.github.benmanes.caffeine.jcache.configuration
A JCache configuration with Caffeine specific settings.
CaffeineConfiguration() - Constructor for class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
CaffeineConfiguration(CompleteConfiguration) - Constructor for class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
CaffeineSpec - Class in com.github.benmanes.caffeine.cache
A specification of a Caffeine builder configuration.
canDeeplyCopy(Class) - Method in class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
Returns if the class has a known deep copy strategy.
ClassLoaderAwareObjectInputStream(InputStream, ClassLoader) - Constructor for class com.github.benmanes.caffeine.jcache.copy.JavaSerializationCopier.ClassLoaderAwareObjectInputStream
 
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.jcache.CacheProxy
 
clear() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
close() - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
close() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
close() - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
close(ClassLoader) - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
close(URI, ClassLoader) - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
coldest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
COLLECTED - Enum constant in enum class com.github.benmanes.caffeine.cache.RemovalCause
The entry was removed automatically because its key or value was garbage-collected.
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.guava - package com.github.benmanes.caffeine.guava
 
com.github.benmanes.caffeine.jcache - package com.github.benmanes.caffeine.jcache
 
com.github.benmanes.caffeine.jcache.configuration - package com.github.benmanes.caffeine.jcache.configuration
 
com.github.benmanes.caffeine.jcache.copy - package com.github.benmanes.caffeine.jcache.copy
 
com.github.benmanes.caffeine.jcache.event - package com.github.benmanes.caffeine.jcache.event
 
com.github.benmanes.caffeine.jcache.expiry - package com.github.benmanes.caffeine.jcache.expiry
 
com.github.benmanes.caffeine.jcache.integration - package com.github.benmanes.caffeine.jcache.integration
 
com.github.benmanes.caffeine.jcache.management - package com.github.benmanes.caffeine.jcache.management
 
com.github.benmanes.caffeine.jcache.processor - package com.github.benmanes.caffeine.jcache.processor
 
com.github.benmanes.caffeine.jcache.spi - package com.github.benmanes.caffeine.jcache.spi
 
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.
configSource() - Static method in class com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator
Returns the strategy for loading the configuration.
Configuration - Enum constant in enum class com.github.benmanes.caffeine.jcache.management.JmxRegistration.MBeanType
 
contains(Object) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
Deprecated.
 
containsKey(K) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
Copier - Interface in com.github.benmanes.caffeine.jcache.copy
An object is copied when the cache is configured with storeByValue to guard against mutations of the key or value.
copy(T, ClassLoader) - Method in interface com.github.benmanes.caffeine.jcache.copy.Copier
Returns a deep copy of the object.
copy(T, ClassLoader) - Method in class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
 
copyMap(Map) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
Returns a deep copy of the map if value-based caching is enabled.
copyOf(T) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
Returns a copy of the value if value-based caching is enabled.
copyValue(Expirable) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
Returns a copy of the value if value-based caching is enabled.
createCache(String, C) - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
CREATED - Enum constant in enum class com.github.benmanes.caffeine.jcache.processor.Action
The entry did not exist and was created.
currentTimeMillis() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 

D

defaults(Config) - Static method in class com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator
Retrieves the default cache settings from the configuration resource.
delete(K, V, RemovalCause) - Method in interface com.github.benmanes.caffeine.cache.CacheWriter
Deprecated.
Deletes the value corresponding to the key from the external resource.
delete(Object) - Method in enum class com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
 
deleteAll(Collection) - Method in enum class com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
 
DELETED - Enum constant in enum class com.github.benmanes.caffeine.jcache.processor.Action
The entry existed and was deleted.
deregister(CacheEntryListenerConfiguration) - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Deregisters a cache entry listener based on the supplied configuration.
deregisterCacheEntryListener(CacheEntryListenerConfiguration) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
deserialize(byte[], ClassLoader) - Method in class com.github.benmanes.caffeine.jcache.copy.JavaSerializationCopier
 
deserialize(A, ClassLoader) - Method in class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
Deserializes the data using the provided classloader.
destroyCache(String) - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
DisabledCacheWriter - Enum Class in com.github.benmanes.caffeine.jcache.integration
A cache writer that does nothing.
disabledScheduler() - Static method in interface com.github.benmanes.caffeine.cache.Scheduler
Returns a scheduler that always returns a successfully completed future.
disabledStatsCounter() - Static method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Returns an accumulator that does not record any cache events.
disabledTicker() - Static method in interface com.github.benmanes.caffeine.cache.Ticker
Returns a ticker that always returns 0.
disabledWriter() - Static method in interface com.github.benmanes.caffeine.cache.CacheWriter
Deprecated.
Returns a writer that does nothing.
dispatcher - Variable in class com.github.benmanes.caffeine.jcache.CacheProxy
 

E

empty() - Static method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns a statistics instance where no cache events have been recorded.
enable(boolean) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Sets whether the statistic collection is enabled.
enableManagement(String, boolean) - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
enableStatistics(String, boolean) - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
EntryProcessorEntry<K,V> - Class in com.github.benmanes.caffeine.jcache.processor
An entry that is consumed by an EntryProcessor.
EntryProcessorEntry(K, V, Optional) - Constructor for class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
EntryProxy<K,V> - Class in com.github.benmanes.caffeine.jcache
An implementation of JSR-107 Cache.Entry.
equals(Object) - Method in class com.github.benmanes.caffeine.cache.CaffeineSpec
 
equals(Object) - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
 
equals(Object) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
equals(Object) - Method in class com.github.benmanes.caffeine.jcache.expiry.JCacheExpiryPolicy
 
estimatedSize() - Method in interface com.github.benmanes.caffeine.cache.Cache
Returns the approximate number of entries in this cache.
EventDispatcher<K,V> - Class in com.github.benmanes.caffeine.jcache.event
A dispatcher that publishes cache events to listeners for asynchronous execution.
EventDispatcher(Executor) - Constructor for class com.github.benmanes.caffeine.jcache.event.EventDispatcher
 
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.
evictionListener(RemovalListener) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies a listener instance that caches should notify each time an entry is evicted.
evictionWeight() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the sum of weights of evicted entries.
executor - Variable in class com.github.benmanes.caffeine.jcache.CacheProxy
 
executor(Executor) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the executor to use when running asynchronous tasks.
exists() - Method in class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
Expirable<V> - Class in com.github.benmanes.caffeine.jcache
A value with an expiration timestamp.
Expirable(V, long) - Constructor for class com.github.benmanes.caffeine.jcache.Expirable
 
expireAfter(Expiry) - 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() - Method in interface com.github.benmanes.caffeine.cache.Policy
Returns access to perform operations based on the time-to-idle expiration policy.
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(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.
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() - Method in interface com.github.benmanes.caffeine.cache.Policy
Returns access to perform operations based on the time-to-live 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(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.
EXPIRED - Enum constant in enum class com.github.benmanes.caffeine.cache.RemovalCause
The entry's expiration timestamp has passed.
expireVariably() - Method in interface com.github.benmanes.caffeine.cache.Policy
Returns access to perform operations based on the variable expiration policy.
expiry - Variable in class com.github.benmanes.caffeine.jcache.CacheProxy
 
Expiry<K,V> - Interface in com.github.benmanes.caffeine.cache
Calculates when cache entries expire.
EXPLICIT - Enum constant in enum class com.github.benmanes.caffeine.cache.RemovalCause
The entry was manually removed by the user.

F

FactoryCreator - Interface in com.github.benmanes.caffeine.jcache.configuration
An object capable of providing factories that produce an instance for a given class name.
factoryOf(String) - Method in interface com.github.benmanes.caffeine.jcache.configuration.FactoryCreator
Returns a Factory that will produce instances of the specified class.
forScheduledExecutorService(ScheduledExecutorService) - Static method in interface com.github.benmanes.caffeine.cache.Scheduler
Returns a scheduler that delegates to the a ScheduledExecutorService.
from(CaffeineSpec) - Static method in class com.github.benmanes.caffeine.cache.Caffeine
Constructs a new Caffeine instance with the settings specified in spec.
from(Config, String) - Static method in class com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator
Retrieves the cache's settings from the configuration resource if defined.
from(String) - Static method in class com.github.benmanes.caffeine.cache.Caffeine
Constructs a new Caffeine instance with the settings specified in spec.

G

get() - Method in class com.github.benmanes.caffeine.jcache.Expirable
Returns the value.
get() - Static method in enum class com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
Returns a disabled cache writer.
get(K) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
Returns the future associated with key in this cache, obtaining that value from AsyncCacheLoader.asyncLoad(K, Executor) 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.
get(K, BiFunction) - 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, Function) - 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, Function) - 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 class com.github.benmanes.caffeine.jcache.CacheProxy
 
get(K) - Method in class com.github.benmanes.caffeine.jcache.LoadingCacheProxy
 
getAction() - Method in class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
getAll(Iterable) - 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) - 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.
getAll(Iterable, BiFunction) - Method in interface com.github.benmanes.caffeine.cache.AsyncCache
Returns the future of a map of the values associated with keys, creating or retrieving those values if necessary.
getAll(Iterable, Function) - Method in interface com.github.benmanes.caffeine.cache.AsyncCache
Returns the future of a map of the values associated with keys, creating or retrieving those values if necessary.
getAll(Iterable, Function) - Method in interface com.github.benmanes.caffeine.cache.Cache
Returns a map of the values associated with the keys, creating or retrieving those values if necessary.
getAll(Set) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
getAll(Set) - Method in class com.github.benmanes.caffeine.jcache.LoadingCacheProxy
 
getAllPresent(Iterable) - Method in interface com.github.benmanes.caffeine.cache.Cache
Returns a map of the values associated with the keys in this cache.
getAndFilterExpiredEntries(Set, boolean) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
Returns all of the mappings present, expiring as required, and optionally updates their access expiry time.
getAndPut(K, V) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
getAndRemove(K) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
getAndReplace(K, V) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
getAverageGetTime() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getAveragePutTime() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getAverageRemoveTime() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCache(String) - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
getCache(String, Class, Class) - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
getCacheEntryFilter() - Method in class com.github.benmanes.caffeine.jcache.event.Registration
 
getCacheEntryListener() - Method in class com.github.benmanes.caffeine.jcache.event.Registration
 
getCacheEntryListenerConfigurations() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
getCacheEvictions() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCacheGets() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCacheHitPercentage() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCacheHits() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCacheLoaderFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
getCacheManager() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
getCacheManager() - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
getCacheManager(URI, ClassLoader) - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
getCacheManager(URI, ClassLoader, Properties) - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
getCacheMisses() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCacheMissPercentage() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCacheNames() - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
getCachePuts() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCacheRemovals() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
getCacheWriter() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
getCacheWriterFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
getCachingProvider() - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
getClassLoader() - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
getClassLoader() - Method in class com.github.benmanes.caffeine.jcache.copy.JavaSerializationCopier.ClassLoaderAwareObjectInputStream
 
getConfiguration() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
getConfiguration() - Method in class com.github.benmanes.caffeine.jcache.event.Registration
 
getConfiguration(Class) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
getCopierFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the Factory for the Copier to be used for the cache.
getDefaultClassLoader() - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
getDefaultProperties() - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
getDefaultURI() - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
getExecutorFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the Factory for the Executor to be used for the cache.
getExpireAfterAccess() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the expire after access in nanoseconds.
getExpireAfterWrite() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the expire after write in nanoseconds.
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) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Returns the duration until the entry should be automatically removed.
getExpiresAfter(K, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Returns the duration until the entry should be automatically removed.
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.
getExpireTimeMS() - Method in class com.github.benmanes.caffeine.jcache.Expirable
Returns the time, in milliseconds, when the value will expire.
getExpiryFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the Factory for the Expiry to be used for the cache.
getExpiryForAccess() - Method in class com.github.benmanes.caffeine.jcache.expiry.JCacheExpiryPolicy
 
getExpiryForCreation() - Method in class com.github.benmanes.caffeine.jcache.expiry.JCacheExpiryPolicy
 
getExpiryForUpdate() - Method in class com.github.benmanes.caffeine.jcache.expiry.JCacheExpiryPolicy
 
getExpiryPolicyFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
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.
getIfPresentQuietly(Object) - Method in interface com.github.benmanes.caffeine.cache.Policy
Returns the value associated with the key in this cache, or null if there is no cached value for the key.
getKey() - Method in class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
getKeyType() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
getKeyType() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheMXBean
 
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.
getMaximumSize() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the maximum size to be used for the cache.
getMaximumWeight() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the maximum weight to be used for the cache.
getName() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
getProperties() - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
getRefreshAfterWrite() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the refresh after write in nanoseconds.
getSchedulerFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the Factory for the Scheduler to be used for the cache.
getTickerFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the Factory for the Ticker to be used for the cache.
getURI() - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
getValue() - Method in class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
getValueType() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
getValueType() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheMXBean
 
getWeigherFactory() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Returns the Factory for the Weigher to be used for the cache.
getWriteExpireTimeMS(boolean) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
Returns the time when the entry will expire.
guardedScheduler(Scheduler) - Static method in interface com.github.benmanes.caffeine.cache.Scheduler
Returns a scheduler that suppresses and logs any exception thrown by the delegate scheduler.
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.

H

hasCacheWriter() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
hasExpired(long) - Method in class com.github.benmanes.caffeine.jcache.Expirable
Returns if the value has expired and is eligible for eviction.
hashCode() - Method in class com.github.benmanes.caffeine.cache.CaffeineSpec
 
hashCode() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
 
hashCode() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
hashCode() - Method in class com.github.benmanes.caffeine.jcache.expiry.JCacheExpiryPolicy
 
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

identity() - Static method in interface com.github.benmanes.caffeine.jcache.copy.Copier
 
ignoreSynchronous() - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Ignores and clears the queued futures to the synchronous listeners that are processing events this thread published.
incrementBy(StatsCounter) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
Increments all counters by the values in other.
inFlight - Variable in class com.github.benmanes.caffeine.jcache.CacheProxy
 
initialCapacity(int) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Sets the minimum total size for the internal data structures.
INSTANCE - Enum constant in enum class com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
 
invalidate(Object) - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards any cached value for the key.
invalidateAll() - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards all entries in the cache.
invalidateAll(Iterable) - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards any cached values for the keys.
invoke(K, EntryProcessor, Object...) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
invokeAll(Set, EntryProcessor, Object...) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
isClosed() - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
isClosed() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
isEmpty() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
Deprecated.
 
isEnabled() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
isEternal() - Method in class com.github.benmanes.caffeine.jcache.Expirable
Returns if the value will never expire.
isImmutable(Class) - Method in class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
Returns if the class is an immutable type and does not need to be copied.
isManagementEnabled() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.isManagementEnabled.
isManagementEnabled() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheMXBean
 
isNativeStatisticsEnabled() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Checks whether native statistics collection is enabled in this cache.
isOsgiComponent() - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
isReadThrough() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
isReadThrough() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheMXBean
 
isRecordingStats() - Method in interface com.github.benmanes.caffeine.cache.Policy
Returns whether the cache statistics are being accumulated.
isStatisticsEnabled() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
isStatisticsEnabled() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheMXBean
 
isStoreByValue() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
isStoreByValue() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheMXBean
 
isSupported(OptionalFeature) - Method in class com.github.benmanes.caffeine.jcache.spi.CaffeineCachingProvider
 
isSynchronous() - Method in class com.github.benmanes.caffeine.jcache.event.Registration
See CacheEntryListenerConfiguration.isSynchronous().
isWeighted() - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns whether the cache is bounded by a maximum size or maximum weight.
isWriteThrough() - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
 
isWriteThrough() - Method in class com.github.benmanes.caffeine.jcache.management.JCacheMXBean
 
iterator() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
iterator() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
Deprecated.
 

J

javaDeepCopyStrategies() - Static method in class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
 
javaImmutableClasses() - Static method in class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
 
JavaSerializationCopier - Class in com.github.benmanes.caffeine.jcache.copy
A strategy that uses Java serialization if a fast path approach is not applicable.
JavaSerializationCopier() - Constructor for class com.github.benmanes.caffeine.jcache.copy.JavaSerializationCopier
 
JavaSerializationCopier(Set, Map) - Constructor for class com.github.benmanes.caffeine.jcache.copy.JavaSerializationCopier
 
JavaSerializationCopier.ClassLoaderAwareObjectInputStream - Class in com.github.benmanes.caffeine.jcache.copy
An ObjectInputStream that instantiates using the supplied classloader.
JCacheEvictionListener<K,V> - Class in com.github.benmanes.caffeine.jcache.event
A listener that provides an adapter to publish events in the order of the actions being performed on a key.
JCacheEvictionListener(EventDispatcher, JCacheStatisticsMXBean) - Constructor for class com.github.benmanes.caffeine.jcache.event.JCacheEvictionListener
 
JCacheExpiryPolicy - Class in com.github.benmanes.caffeine.jcache.expiry
A customized expiration policy.
JCacheExpiryPolicy(Duration, Duration, Duration) - Constructor for class com.github.benmanes.caffeine.jcache.expiry.JCacheExpiryPolicy
 
JCacheLoaderAdapter<K,V> - Class in com.github.benmanes.caffeine.jcache.integration
An adapter from a JCache cache loader to Caffeine's.
JCacheLoaderAdapter(CacheLoader, EventDispatcher, ExpiryPolicy, Ticker, JCacheStatisticsMXBean) - Constructor for class com.github.benmanes.caffeine.jcache.integration.JCacheLoaderAdapter
 
JCacheMXBean - Class in com.github.benmanes.caffeine.jcache.management
The Caffeine JCache management bean.
JCacheMXBean(Cache) - Constructor for class com.github.benmanes.caffeine.jcache.management.JCacheMXBean
 
JCacheStatisticsMXBean - Class in com.github.benmanes.caffeine.jcache.management
Caffeine JCache statistics.
JCacheStatisticsMXBean() - Constructor for class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
 
JmxRegistration - Class in com.github.benmanes.caffeine.jcache.management
Jmx cache utilities.
JmxRegistration.MBeanType - Enum Class in com.github.benmanes.caffeine.jcache.management
 

L

linearizable() - Static method in class com.github.benmanes.caffeine.SingleConsumerQueue
Deprecated.
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.
load(K) - Method in class com.github.benmanes.caffeine.jcache.integration.JCacheLoaderAdapter
 
loadAll(Iterable) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Computes or retrieves the values corresponding to keys.
loadAll(Iterable) - Method in class com.github.benmanes.caffeine.jcache.integration.JCacheLoaderAdapter
 
loadAll(Set, boolean, CompletionListener) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
loadAll(Set, boolean, CompletionListener) - Method in class com.github.benmanes.caffeine.jcache.LoadingCacheProxy
 
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.
LOADED - Enum constant in enum class com.github.benmanes.caffeine.jcache.processor.Action
The entry exists and had to be loaded into the cache.
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.
LoadingCacheProxy<K,V> - Class in com.github.benmanes.caffeine.jcache
An implementation of JSR-107 Cache backed by a Caffeine loading cache.
LoadingCacheProxy(String, Executor, CacheManager, CaffeineConfiguration, LoadingCache, EventDispatcher, CacheLoader, ExpiryPolicy, Ticker, JCacheStatisticsMXBean) - Constructor for class com.github.benmanes.caffeine.jcache.LoadingCacheProxy
 
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.

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

nanosToMillis(long) - Static method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
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.
NONE - Enum constant in enum class com.github.benmanes.caffeine.jcache.processor.Action
The entry was neither read nor written to.

O

objectFieldOffset(Class, String) - Static method in class com.github.benmanes.caffeine.base.UnsafeAccess
Deprecated.
Returns the location of a given static field.
of(long, long, long, long, long, long, long) - Static method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns a CacheStats representing the specified statistics.
offer(E) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
Deprecated.
 
oldest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
oldest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
onRemoval(K, V, RemovalCause) - Method in interface com.github.benmanes.caffeine.cache.RemovalListener
Notifies the listener that a removal occurred at some point in the past.
onRemoval(K, Expirable, RemovalCause) - Method in class com.github.benmanes.caffeine.jcache.event.JCacheEvictionListener
 
optimistic() - Static method in class com.github.benmanes.caffeine.SingleConsumerQueue
Deprecated.
Creates a queue with an optimistic backoff strategy.

P

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
Deprecated.
 
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
Deprecated.
 
publishCreated(Cache, K, V) - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Publishes a creation event for the entry to all of the interested listeners.
publishExpired(Cache, K, V) - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Publishes a expire event for the entry to all of the interested listeners.
publishExpiredQuietly(Cache, K, V) - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Publishes a expire event for the entry to all of the interested listeners.
publishRemoved(Cache, K, V) - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Publishes a remove event for the entry to all of the interested listeners.
publishRemovedQuietly(Cache, K, V) - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Publishes a remove event for the entry to all of the interested listeners.
publishUpdated(Cache, K, V, V) - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Publishes a update event for the entry to all of the interested listeners.
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.
put(K, CompletableFuture) - Method in interface com.github.benmanes.caffeine.cache.AsyncCache
Associates value with key in this cache.
put(K, V) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
putAll(Map) - Method in interface com.github.benmanes.caffeine.cache.Cache
Copies all of the mappings from the specified map to the cache.
putAll(Map) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
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.
putIfAbsent(K, V) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
putNoCopyOrAwait(K, V, boolean, int[]) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
Associates the specified value with the specified key in the cache.

R

read() - Method in interface com.github.benmanes.caffeine.cache.Ticker
Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
READ - Enum constant in enum class com.github.benmanes.caffeine.jcache.processor.Action
The entry exists, was read, and never mutated.
recordEviction() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
Deprecated.
recordEviction() - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Deprecated.
Use StatsCounter.recordEviction(int, RemovalCause) instead. This method is scheduled for removal in version 3.0.0.
recordEviction(int) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Deprecated.
Use StatsCounter.recordEviction(int, RemovalCause) instead. This method is scheduled for removal in version 3.0.0.
recordEviction(int, RemovalCause) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Records the eviction of an entry from the cache.
recordEviction(int) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
Deprecated.
recordEviction(int, RemovalCause) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordEvictions(long) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Records cache evictions.
recordGetTime(long) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Records the time to execute get operations.
recordHits(int) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Records cache hits.
recordHits(long) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Records cache hits.
recordHits(int) - 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.
recordLoadFailure(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.
recordLoadSuccess(long) - 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.
recordMisses(long) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Records cache misses.
recordMisses(int) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordPuts(long) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Records cache insertion and updates.
recordPutTime(long) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Records the time to execute put operations.
recordRemovals(long) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Records cache removals.
recordRemoveTime(long) - Method in class com.github.benmanes.caffeine.jcache.management.JCacheStatisticsMXBean
Records the time to execute remove operations.
recordStats() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Enables the accumulation of CacheStats during the operation of the cache.
recordStats(Supplier) - 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() - Method in interface com.github.benmanes.caffeine.cache.Policy
Returns access to perform operations based on the time-to-live refresh policy.
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(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.
register(CacheEntryListenerConfiguration) - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Registers a cache entry listener based on the supplied configuration.
registerCacheEntryListener(CacheEntryListenerConfiguration) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
registerMXBean(Cache, Object, JmxRegistration.MBeanType) - Static method in class com.github.benmanes.caffeine.jcache.management.JmxRegistration
Registers the JMX management bean for the cache.
Registration<K,V> - Class in com.github.benmanes.caffeine.jcache.event
The registration of a CacheEntryListener for event dispatching.
Registration(CacheEntryListenerConfiguration, CacheEntryEventFilter, EventTypeAwareListener) - Constructor for class com.github.benmanes.caffeine.jcache.event.Registration
 
registrations() - Method in class com.github.benmanes.caffeine.jcache.event.EventDispatcher
Returns the cache entry listener registrations.
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 Class in com.github.benmanes.caffeine.cache
The reason why a cached entry was removed.
removalListener(RemovalListener) - 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.
remove() - Method in class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
remove(K) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
remove(K, V) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
removeAll() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
removeAll(Set) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
removeCacheEntryListenerConfiguration(CacheEntryListenerConfiguration) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.removeCacheEntryListenerConfiguration(CacheEntryListenerConfiguration).
replace(K, V) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
replace(K, V, V) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
REPLACED - Enum constant in enum class com.github.benmanes.caffeine.cache.RemovalCause
The entry itself was not actually removed, but its value was replaced by the user.
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.
requireNotClosed() - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
Checks that the cache is not closed.
resolveClass(ObjectStreamClass) - Method in class com.github.benmanes.caffeine.jcache.copy.JavaSerializationCopier.ClassLoaderAwareObjectInputStream
 
roundtrip(T, ClassLoader) - Method in class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
Performs the serialization and deserialization, returning the copied object.

S

schedule(Executor, Runnable, long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Scheduler
Returns a future that will submit the task to the given executor after the given delay.
scheduler(Scheduler) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the scheduler to use when scheduling routine maintenance based on an expiration event.
Scheduler - Interface in com.github.benmanes.caffeine.cache
A scheduler that submits a task to an executor after a given delay.
serialize(Object) - Method in class com.github.benmanes.caffeine.jcache.copy.AbstractCopier
Serializes the object.
serialize(Object) - Method in class com.github.benmanes.caffeine.jcache.copy.JavaSerializationCopier
 
setAccessExpirationTime(K, Expirable, long) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
Sets the access expiration time.
setCache(CacheProxy) - Method in class com.github.benmanes.caffeine.jcache.integration.JCacheLoaderAdapter
Sets the cache instance that was created with this loader.
setCache(Cache) - Method in class com.github.benmanes.caffeine.jcache.event.JCacheEvictionListener
Sets the cache instance that was created with this listener.
setCacheLoaderFactory(Factory) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setCacheLoaderFactory(Factory).
setCacheWriterFactory(Factory) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setCacheWriterFactory(Factory).
setConfigSource(Supplier) - Static method in class com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator
Specifies how the Config instance should be loaded.
setCopierFactory(Factory) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the Factory for the Copier.
setExecutorFactory(Factory) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the Factory for the Executor.
setExpireAfterAccess(OptionalLong) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the expire after write in nanoseconds.
setExpireAfterWrite(OptionalLong) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the expire after write in nanoseconds.
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.
setExpiresAfter(K, long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Specifies that the entry should be automatically removed from the cache once the duration has elapsed.
setExpiresAfter(K, Duration) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Specifies that the entry should be automatically removed from the cache once the duration has elapsed.
setExpiresAfter(Duration) - 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.
setExpireTimeMS(long) - Method in class com.github.benmanes.caffeine.jcache.Expirable
Specifies the time, in milliseconds, when the value will expire.
setExpiryFactory(Optional) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the Factory for the Expiry.
setExpiryPolicyFactory(Factory) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setExpiryPolicyFactory(Factory).
setFactoryCreator(FactoryCreator) - Static method in class com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator
Specifies how Factory instances are created for a given class name.
setManagementEnabled(boolean) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setManagementEnabled(boolean).
setMaximum(long) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Specifies the maximum total size of this cache.
setMaximumSize(OptionalLong) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the maximum size.
setMaximumWeight(OptionalLong) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the maximum weight.
setNativeStatisticsEnabled(boolean) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Sets whether native statistics gathering is enabled on a cache.
setReadThrough(boolean) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setReadThrough(boolean).
setRefreshAfterWrite(OptionalLong) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the refresh after write in nanoseconds.
setSchedulerFactory(Factory) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the Factory for the Scheduler.
setStatisticsEnabled(boolean) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setStatisticsEnabled(boolean).
setStoreByValue(boolean) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setStoreByValue(boolean).
setTickerFactory(Factory) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the Factory for the Ticker.
setTypes(Class, Class) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setTypes(Class, Class).
setValue(V) - Method in class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
setWeigherFactory(Optional) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
Set the Factory for the Weigher.
setWriteThrough(boolean) - Method in class com.github.benmanes.caffeine.jcache.configuration.CaffeineConfiguration
See MutableConfiguration.setWriteThrough(boolean).
SingleConsumerQueue<E> - Class in com.github.benmanes.caffeine
Deprecated.
Scheduled for removal in version 3.0.0
singletonWeigher() - 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.SingleConsumerQueue
Deprecated.
 
SIZE - Enum constant in enum class com.github.benmanes.caffeine.cache.RemovalCause
The entry was evicted due to size constraints.
snapshot() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
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).
statistics - Variable in class com.github.benmanes.caffeine.jcache.CacheProxy
 
Statistics - Enum constant in enum class com.github.benmanes.caffeine.jcache.management.JmxRegistration.MBeanType
 
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.AsyncCache
Returns a view of the entries stored in this cache as a synchronous Cache.
synchronous() - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
Returns a view of the entries stored in this cache as a synchronous LoadingCache.
systemScheduler() - Static method in interface com.github.benmanes.caffeine.cache.Scheduler
Returns a scheduler that uses the system-wide scheduling thread if available, or else returns Scheduler.disabledScheduler() if not present.
systemTicker() - Static method in interface com.github.benmanes.caffeine.cache.Ticker
Returns a ticker that reads the current time using System.nanoTime().

T

ticker - Variable in class com.github.benmanes.caffeine.jcache.CacheProxy
 
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.
toParsableString() - Method in class com.github.benmanes.caffeine.cache.CaffeineSpec
Returns a string that can be used to parse an equivalent CaffeineSpec.
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.CaffeineSpec
Returns a string representation for this CaffeineSpec instance.
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 class com.github.benmanes.caffeine.jcache.Expirable
 
toString() - Method in class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
totalLoadTime() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the total number of nanoseconds the cache has spent loading new values.
TypesafeConfigurator - Class in com.github.benmanes.caffeine.jcache.configuration
Static utility methods pertaining to externalized CaffeineConfiguration entries using the Typesafe Config library.

U

unregisterMXBean(CacheProxy, JmxRegistration.MBeanType) - Static method in class com.github.benmanes.caffeine.jcache.management.JmxRegistration
Unregisters the JMX management bean for the cache.
UNSAFE - Static variable in class com.github.benmanes.caffeine.base.UnsafeAccess
Deprecated.
The Unsafe instance.
UnsafeAccess - Class in com.github.benmanes.caffeine.base
Deprecated.
Scheduled for removal in version 3.0.0
unwrap(Class) - Method in class com.github.benmanes.caffeine.jcache.CacheManagerImpl
 
unwrap(Class) - Method in class com.github.benmanes.caffeine.jcache.CacheProxy
 
unwrap(Class) - Method in class com.github.benmanes.caffeine.jcache.EntryProxy
 
unwrap(Class) - Method in class com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry
 
UPDATED - Enum constant in enum class com.github.benmanes.caffeine.jcache.processor.Action
The entry exists and was updated.

V

valueOf(String) - Static method in enum class com.github.benmanes.caffeine.cache.RemovalCause
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.github.benmanes.caffeine.jcache.management.JmxRegistration.MBeanType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.github.benmanes.caffeine.jcache.processor.Action
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.github.benmanes.caffeine.cache.RemovalCause
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.github.benmanes.caffeine.jcache.management.JmxRegistration.MBeanType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.github.benmanes.caffeine.jcache.processor.Action
Returns an array containing the constants of this enum class, in the order they are declared.

W

wasEvicted() - Method in enum class 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).
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) - 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.
weightOf(K) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns the weight of the entry.
write(K, V) - Method in interface com.github.benmanes.caffeine.cache.CacheWriter
Deprecated.
Writes the value corresponding to the key to the external resource.
write(Cache.Entry) - Method in enum class com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
 
writeAll(Collection) - Method in enum class com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
 
writer(CacheWriter) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Deprecated.
Scheduled for removal in version 3.0.0. Consider instead using Map compute methods for extending manual write and remove operations, and using Caffeine.evictionListener(RemovalListener) for extending removals due to eviction.

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.
youngest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
A B C D E F G H I J L M N O P R S T U V W Y 
All Classes and Interfaces|All Packages|Serialized Form