org.ehcache.core.events
Interface CacheEventDispatcher<K,V>
- Type Parameters:
K
- the key type of mappingsV
- the value type of mappings
- All Superinterfaces:
- ConfigurationChangeSupport
- All Known Implementing Classes:
- CacheEventDispatcherImpl, DisabledCacheEventNotificationService
public interface CacheEventDispatcher<K,V>
- extends ConfigurationChangeSupport
Bridges the Store
eventing system, by providing the
StoreEventDispatcher
used to collect events and then produce
CacheEvent
s that can be consumed by CacheEventListener
s.
registerCacheEventListener
void registerCacheEventListener(CacheEventListener<? super K,? super V> listener,
EventOrdering ordering,
EventFiring firing,
java.util.EnumSet<EventType> eventTypes)
deregisterCacheEventListener
void deregisterCacheEventListener(CacheEventListener<? super K,? super V> listener)
shutdown
void shutdown()
setListenerSource
void setListenerSource(Cache<K,V> source)
setStoreEventSource
void setStoreEventSource(StoreEventSource<K,V> eventSource)