org.ehcache.core.events
Interface CacheEventDispatcherFactory

All Superinterfaces:
Service

public interface CacheEventDispatcherFactory
extends Service

Service interface for providing CacheEventDispatchers, consumed by EhcacheManager.


Method Summary
<K,V> CacheEventDispatcher<K,V>
createCacheEventDispatcher(Store<K,V> store, ServiceConfiguration<?>... serviceConfigs)
          Creates an instance of CacheEventDispatcher to be used with a Cache and provided Store.
<K,V> void
releaseCacheEventDispatcher(CacheEventDispatcher<K,V> eventDispatcher)
          Releases an instance of CacheEventDispatcher, causing it to shutdown and release all CacheEventListeners registered with it.
 
Methods inherited from interface org.ehcache.spi.service.Service
start, stop
 

Method Detail

createCacheEventDispatcher

<K,V> CacheEventDispatcher<K,V> createCacheEventDispatcher(Store<K,V> store,
                                                           ServiceConfiguration<?>... serviceConfigs)
Creates an instance of CacheEventDispatcher to be used with a Cache and provided Store.

Type Parameters:
K - the key type
V - the value type
Parameters:
store - the store to link to
serviceConfigs - the service configurations
Returns:
the CacheEventDispatcher

releaseCacheEventDispatcher

<K,V> void releaseCacheEventDispatcher(CacheEventDispatcher<K,V> eventDispatcher)
Releases an instance of CacheEventDispatcher, causing it to shutdown and release all CacheEventListeners registered with it.

Parameters:
eventDispatcher - the CacheEventDispatcher to release