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 |
<K,V> CacheEventListener<K,V> createEventListener(java.lang.String alias, ServiceConfiguration<CacheEventListenerProvider> serviceConfiguration)
CacheEventListener
K
- the key type for the associated Cache
V
- the value type for the associated Cache
alias
- the Cache
instance's alias in the CacheManager
serviceConfiguration
- the configuration instance that will be used to create the CacheEventListener
Cache
void releaseEventListener(CacheEventListener<?,?> cacheEventListener) throws java.lang.Exception
CacheEventListener
cacheEventListener
- the CacheEventListener to releasejava.lang.Exception
- when the release fails