Uses of Interface
org.cache2k.CacheEntry
-
Packages that use CacheEntry Package Description org.cache2k Main package for cache2k API containing functions to build and access a cache.org.cache2k.event Events that are fired on behalf of a cache operation.org.cache2k.expiry Set of interfaces for customizing the expiry behavior.org.cache2k.io Loader and writer to integrate with external data sources.org.cache2k.processor Entry processor and supporting types for custom atomic operations on a cache entry. -
-
Uses of CacheEntry in org.cache2k
Methods in org.cache2k that return CacheEntry Modifier and Type Method Description CacheEntry<K,V>AbstractCache. getEntry(K key)@Nullable CacheEntry<K,V>Cache. getEntry(K key)Returns an entry that contains the cache value associated with the given key.@Nullable CacheEntry<K,V>ForwardingCache. getEntry(K key)CacheEntry<K,V>AbstractCache. peekEntry(K key)@Nullable CacheEntry<K,V>Cache. peekEntry(K key)Returns an entry that contains the cache value associated with the given key.@Nullable CacheEntry<K,V>ForwardingCache. peekEntry(K key)Methods in org.cache2k that return types with arguments of type CacheEntry Modifier and Type Method Description Set<CacheEntry<K,V>>AbstractCache. entries()Set<CacheEntry<K,V>>Cache. entries()All entries in the cache.Set<CacheEntry<K,V>>ForwardingCache. entries() -
Uses of CacheEntry in org.cache2k.event
Methods in org.cache2k.event with parameters of type CacheEntry Modifier and Type Method Description 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 CacheEntry in org.cache2k.expiry
Methods in org.cache2k.expiry with parameters of type CacheEntry Modifier and Type Method Description longExpiryPolicy. calculateExpiryTime(K key, V value, long startTime, @Nullable CacheEntry<K,V> currentEntry)Returns the time of expiry in milliseconds since epoch. -
Uses of CacheEntry in org.cache2k.io
Subinterfaces of CacheEntry in org.cache2k.io Modifier and Type Interface Description interfaceLoadExceptionInfo<K,V>Relevant information of a load attempt that generated an exception.Methods in org.cache2k.io that return CacheEntry Modifier and Type Method Description @Nullable CacheEntry<K,V>AsyncCacheLoader.Context. getCurrentEntry()Current entry in the cache.Methods in org.cache2k.io with parameters of type CacheEntry Modifier and Type Method Description VAdvancedCacheLoader. load(K key, long startTime, @Nullable CacheEntry<K,V> currentEntry)Retrieves or generates data based on the key parameter.longResiliencePolicy. suppressExceptionUntil(K key, LoadExceptionInfo<K,V> loadExceptionInfo, CacheEntry<K,V> cachedEntry)Called after the loader threw an exception and a previous value is available. -
Uses of CacheEntry in org.cache2k.processor
Subinterfaces of CacheEntry in org.cache2k.processor Modifier and Type Interface Description interfaceMutableCacheEntry<K,V>A mutable entry is used inside theEntryProcessorto perform updates and retrieve information from a cache entry.
-