Class Registration<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.jcache.event.Registration<K,V>
-
public final class Registration<K,V> extends java.lang.Object
The registration of aCacheEntryListener
for event dispatching.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.cache.configuration.CacheEntryListenerConfiguration<K,V>
configuration
private javax.cache.event.CacheEntryEventFilter<K,V>
filter
private EventTypeAwareListener<K,V>
listener
-
Constructor Summary
Constructors Constructor Description Registration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> configuration, javax.cache.event.CacheEntryEventFilter<K,V> filter, EventTypeAwareListener<K,V> listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.cache.event.CacheEntryEventFilter<K,V>
getCacheEntryFilter()
EventTypeAwareListener<K,V>
getCacheEntryListener()
javax.cache.configuration.CacheEntryListenerConfiguration<K,V>
getConfiguration()
boolean
isSynchronous()
SeeCacheEntryListenerConfiguration.isSynchronous()
.
-
-
-
Method Detail
-
getConfiguration
public javax.cache.configuration.CacheEntryListenerConfiguration<K,V> getConfiguration()
- Returns:
- the configuration
-
getCacheEntryListener
public EventTypeAwareListener<K,V> getCacheEntryListener()
- Returns:
- the registered listener
-
getCacheEntryFilter
public javax.cache.event.CacheEntryEventFilter<K,V> getCacheEntryFilter()
- Returns:
- the registered filter
-
isSynchronous
public boolean isSynchronous()
SeeCacheEntryListenerConfiguration.isSynchronous()
.
-
-