K - key typeV - value typepublic class EventHandlingImpl<K,V> extends Object implements EventHandling<K,V>, org.cache2k.event.CacheClosedListener
AsyncDispatcherDISABLED| Constructor and Description |
|---|
EventHandlingImpl(JCacheManagerAdapter m,
Executor ex) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInternalListenersToCache2kConfiguration(org.cache2k.configuration.Cache2kConfiguration<K,V> cfg) |
boolean |
deregisterListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cfg) |
Collection<javax.cache.configuration.CacheEntryListenerConfiguration<K,V>> |
getAllListenerConfigurations() |
void |
onCacheClosed(org.cache2k.Cache cache)
Copy to a set first, because some listener instances may implement multiple interfaces
and show up in the all listeners list more then once
|
void |
registerListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cfg) |
public EventHandlingImpl(JCacheManagerAdapter m, Executor ex)
public boolean deregisterListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cfg)
deregisterListener in interface EventHandling<K,V>public Collection<javax.cache.configuration.CacheEntryListenerConfiguration<K,V>> getAllListenerConfigurations()
getAllListenerConfigurations in interface EventHandling<K,V>public void onCacheClosed(org.cache2k.Cache cache)
onCacheClosed in interface org.cache2k.event.CacheClosedListenercache - The cache that is closing. No cache operations on entries are allowed.public void registerListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cfg)
registerListener in interface EventHandling<K,V>public void addInternalListenersToCache2kConfiguration(org.cache2k.configuration.Cache2kConfiguration<K,V> cfg)
addInternalListenersToCache2kConfiguration in interface EventHandling<K,V>cache2k API documentation. Copyright © 2000–2020 headissue GmbH, Munich.