JCacheListenerAdapter(javax.cache.event.CacheEntryListener<K,V> cacheListener,
JCache<K,V> jCache,
javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
Construct an adapter that wraps the cacheListener to be used by Ehcache
The interfaces of CacheEntryListener are more fine-grained than the
CacheEntryListener interface - and may only implement one or more of the following
sub-interfaces:
CacheEntryRemovedListener
CacheEntryCreatedListener
CacheEntryUpdatedListener
CacheEntryExpiredListener
When this constructor is called, the cacheListener will be inspected
and based upon which sub-interfaces of CacheEntryListener the cacheListener
implements, listeners on the corresponding EHCache events will be adapted to it. |