public interface CacheEventListenerProvider
extends org.ehcache.spi.service.Service
| Modifier and Type | Method and Description |
|---|---|
<K,V> org.ehcache.event.CacheEventListener<K,V> |
createEventListener(java.lang.String alias,
org.ehcache.spi.service.ServiceConfiguration<CacheEventListenerProvider,?> serviceConfiguration)
Creates a new
CacheEventListener |
void |
releaseEventListener(org.ehcache.event.CacheEventListener<?,?> cacheEventListener)
Releases a given
CacheEventListener
If the listener instance is provided by the user, Closeable.close()
will not be invoked. |
<K,V> org.ehcache.event.CacheEventListener<K,V> createEventListener(java.lang.String alias,
org.ehcache.spi.service.ServiceConfiguration<CacheEventListenerProvider,?> serviceConfiguration)
CacheEventListenerK - the key type for the associated CacheV - the value type for the associated Cachealias - the Cache instance's alias in the CacheManagerserviceConfiguration - the configuration instance that will be used to create the CacheEventListenerCachevoid releaseEventListener(org.ehcache.event.CacheEventListener<?,?> cacheEventListener)
throws java.lang.Exception
CacheEventListener
If the listener instance is provided by the user, Closeable.close()
will not be invoked.cacheEventListener - the CacheEventListener to releasejava.lang.Exception - when the release fails