org.ehcache.internal.events
Class CacheEventDispatcherFactoryImpl

java.lang.Object
  extended by org.ehcache.internal.events.CacheEventDispatcherFactoryImpl
All Implemented Interfaces:
CacheEventDispatcherFactory, Service

public class CacheEventDispatcherFactoryImpl
extends java.lang.Object
implements CacheEventDispatcherFactory


Constructor Summary
CacheEventDispatcherFactoryImpl()
           
CacheEventDispatcherFactoryImpl(CacheEventDispatcherFactoryConfiguration configuration)
           
 
Method Summary
<K,V> CacheEventDispatcher<K,V>
createCacheEventDispatcher(Store<K,V> store, ServiceConfiguration<?>... serviceConfigs)
          Creates an instance of CacheEventDispatcher to be used by CacheManager
<K,V> void
releaseCacheEventDispatcher(CacheEventDispatcher<K,V> cenlService)
          Invoked by CacheManager to release all CacheEventListener listeners registered with CacheEventDispatcher
 void start(ServiceProvider serviceProvider)
          Start this service using the provided configuration and ServiceProvider.
 void stop()
          Stops this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEventDispatcherFactoryImpl

public CacheEventDispatcherFactoryImpl()

CacheEventDispatcherFactoryImpl

public CacheEventDispatcherFactoryImpl(CacheEventDispatcherFactoryConfiguration configuration)
Method Detail

start

public void start(ServiceProvider serviceProvider)
Description copied from interface: Service
Start this service using the provided configuration and ServiceProvider.

The goal of the service provider is to allow a service to use other services.

Specified by:
start in interface Service
Parameters:
serviceProvider - the service provider.

stop

public void stop()
Description copied from interface: Service
Stops this service.

Specified by:
stop in interface Service

createCacheEventDispatcher

public <K,V> CacheEventDispatcher<K,V> createCacheEventDispatcher(Store<K,V> store,
                                                                  ServiceConfiguration<?>... serviceConfigs)
Description copied from interface: CacheEventDispatcherFactory
Creates an instance of CacheEventDispatcher to be used by CacheManager

Specified by:
createCacheEventDispatcher in interface CacheEventDispatcherFactory
Returns:
the CacheEventDispatcher

releaseCacheEventDispatcher

public <K,V> void releaseCacheEventDispatcher(CacheEventDispatcher<K,V> cenlService)
Description copied from interface: CacheEventDispatcherFactory
Invoked by CacheManager to release all CacheEventListener listeners registered with CacheEventDispatcher

Specified by:
releaseCacheEventDispatcher in interface CacheEventDispatcherFactory
Parameters:
cenlService - the CacheEventDispatcher