Uses of Interface
org.cache2k.event.CacheEntryOperationListener
-
Packages that use CacheEntryOperationListener 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. -
-
Uses of CacheEntryOperationListener in org.cache2k
Methods in org.cache2k with parameters of type CacheEntryOperationListener Modifier and Type Method Description Cache2kBuilder<K,V>
Cache2kBuilder. addAsyncListener(CacheEntryOperationListener<K,V> listener)
A set of listeners.Cache2kBuilder<K,V>
Cache2kBuilder. addListener(CacheEntryOperationListener<K,V> listener)
Add a listener. -
Uses of CacheEntryOperationListener in org.cache2k.config
Methods in org.cache2k.config that return types with arguments of type CacheEntryOperationListener Modifier and Type Method Description @NonNull Collection<CustomizationSupplier<CacheEntryOperationListener<K,V>>>
Cache2kConfig. getAsyncListeners()
A set of listeners.@NonNull Collection<CustomizationSupplier<CacheEntryOperationListener<K,V>>>
Cache2kConfig. getListeners()
A set of listeners.Method parameters in org.cache2k.config with type arguments of type CacheEntryOperationListener Modifier and Type Method Description void
Cache2kConfig. setAsyncListeners(Collection<CustomizationSupplier<CacheEntryOperationListener<K,V>>> c)
Adds the collection of customizations to the existing list.void
Cache2kConfig. setListeners(Collection<CustomizationSupplier<CacheEntryOperationListener<K,V>>> c)
Adds the collection of customizations to the existing list. -
Uses of CacheEntryOperationListener in org.cache2k.event
Subinterfaces of CacheEntryOperationListener in org.cache2k.event Modifier and Type Interface Description interface
CacheEntryCreatedListener<K,V>
A new entry is inserted into the cache, e.g.interface
CacheEntryEvictedListener<K,V>
Called when an entry gets evicted by the cache.interface
CacheEntryExpiredListener<K,V>
Listener called when an entry expires.interface
CacheEntryRemovedListener<K,V>
Called when an entry was actively removed from the cache.interface
CacheEntryUpdatedListener<K,V>
Fires in case a cache entry is mutated.
-