| Modifier and Type | Method and Description | 
|---|---|
<K,V> CacheEventListener<K,V> | 
createEventListener(java.lang.String alias,
                   ServiceConfiguration<CacheEventListenerProvider> serviceConfiguration)
Creates a new  
CacheEventListener | 
void | 
releaseEventListener(CacheEventListener<?,?> cacheEventListener)
Releases a given  
CacheEventListener
 If the listener instance is provided by the user, Closeable.close()
 will not be invoked. | 
<K,V> CacheEventListener<K,V> createEventListener(java.lang.String alias, 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(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