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.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 classAbstractCache<K,V>Base class for implementations of the cache interface.classForwardingCache<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 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 theCache2kBuilderorCacheManager.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. -
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.voidCacheEntryCreatedListener. onEntryCreated(Cache<K,V> cache, CacheEntry<K,V> entry)Called for the creation of a cache entry and after all cache writers ran successfully.voidCacheEntryEvictedListener. onEntryEvicted(Cache<K,V> cache, CacheEntry<K,V> entry)Called upon eviction of a cache entry.voidCacheEntryExpiredListener. onEntryExpired(Cache<K,V> cache, CacheEntry<K,V> entry)Called after the expiry of an entry.voidCacheEntryRemovedListener. onEntryRemoved(Cache<K,V> cache, CacheEntry<K,V> entry)Called after the removal of a cache entry and after all cache writers ran successfully.voidCacheEntryUpdatedListener. 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.operation
Methods in org.cache2k.operation with parameters of type Cache Modifier and Type Method Description static CacheControlCacheControl. of(Cache<?,?> cache)Request an management interface of the given cache.static CacheInfoCacheInfo. 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.
-