Uses of Interface
org.cache2k.Cache
-
Packages that use Cache Package Description org.cache2k Main package for cache2k API containing functions to build and access a cache.org.cache2k.config The cache configuration as a Java bean and support types.org.cache2k.event Events that are fired on behalf of a cache operation.org.cache2k.io Loader and writer to integrate with external data sources.org.cache2k.operation Operational aspects of a cache, like accessing statistics, basic information, change runtime parameters and customizations that augment general behavior.org.cache2k.spi Service provider interface that is used by the cache2k implementation. -
-
Uses of Cache in org.cache2k
Classes in org.cache2k that implement Cache Modifier and Type Class Description class
AbstractCache<K,V>
Base class for implementations of the cache interface.class
ForwardingCache<K,V>
Wrapper class that forwards all method calls to a delegate.Methods in org.cache2k that return Cache Modifier and Type Method Description Cache<K,V>
Cache2kBuilder. build()
Builds a cache with the specified configuration parameters.abstract <K,V>
Cache<K,V>CacheManager. createCache(Cache2kConfig<K,V> cfg)
Create a new cache from the configuration.protected abstract @NonNull Cache<K,V>
ForwardingCache. delegate()
Subclasses need to implement this method which specifies the delegation target.abstract <K,V>
Cache<K,V>CacheManager. getCache(String name)
Return a known cache that must be created before via theCache2kBuilder
orCacheManager.createCache(Cache2kConfig)
Methods in org.cache2k that return types with arguments of type Cache Modifier and Type Method Description abstract Iterable<Cache<?,?>>
CacheManager. getActiveCaches()
Returns all open caches associated with this cache manager.Constructors in org.cache2k with parameters of type Cache Constructor Description CacheClosedException(Cache<?,?> cache)
This is the preferred constructor. -
Uses of Cache in org.cache2k.config
Methods in org.cache2k.config that return Cache Modifier and Type Method Description <K,V>
Cache<K,V>CacheWrapper. wrap(CacheBuildContext<K,V> context, Cache<K,V> cache)
Methods in org.cache2k.config with parameters of type Cache Modifier and Type Method Description <K,V>
Cache<K,V>CacheWrapper. wrap(CacheBuildContext<K,V> context, Cache<K,V> cache)
-
Uses of Cache in org.cache2k.event
Methods in org.cache2k.event with parameters of type Cache Modifier and Type Method Description CompletableFuture<Void>
CacheClosedListener. onCacheClosed(Cache<?,?> cache)
Called when cache is closed.<K,V>
CompletableFuture<Void>CacheCreatedListener. onCacheCreated(Cache<K,V> cache, CacheBuildContext<K,V> ctx)
A new cache has been created.void
CacheEntryCreatedListener. onEntryCreated(Cache<K,V> cache, CacheEntry<K,V> entry)
Called for the creation of a cache entry and after all cache writers ran successfully.void
CacheEntryEvictedListener. onEntryEvicted(Cache<K,V> cache, CacheEntry<K,V> entry)
Called upon eviction of a cache entry.void
CacheEntryExpiredListener. onEntryExpired(Cache<K,V> cache, CacheEntry<K,V> entry)
Called after the expiry of an entry.void
CacheEntryRemovedListener. onEntryRemoved(Cache<K,V> cache, CacheEntry<K,V> entry)
Called after the removal of a cache entry and after all cache writers ran successfully.void
CacheEntryUpdatedListener. onEntryUpdated(Cache<K,V> cache, CacheEntry<K,V> currentEntry, CacheEntry<K,V> newEntry)
Called after a mutation of a cache entry and after all cache writers ran successfully. -
Uses of Cache in org.cache2k.io
Methods in org.cache2k.io that return Cache Modifier and Type Method Description Cache<K,V>
AsyncBulkCacheLoader.BulkLoadContext. getCache()
Cache originating the requestCache<K,V>
AsyncCacheLoader.Context. getCache()
The cache originating the load request -
Uses of Cache in org.cache2k.operation
Methods in org.cache2k.operation with parameters of type Cache Modifier and Type Method Description static CacheControl
CacheControl. of(Cache<?,?> cache)
Request the management interface of the given cache.static CacheInfo
CacheInfo. of(Cache<?,?> cache)
Request an instance for the given cache. -
Uses of Cache in org.cache2k.spi
Methods in org.cache2k.spi that return Cache Modifier and Type Method Description <K,V>
Cache<K,V>Cache2kCoreProvider. createCache(CacheManager m, Cache2kConfig<K,V> cfg)
Create a cache, apply external configuration before creating it.
-