Class Registration<K,V>

java.lang.Object
com.github.benmanes.caffeine.jcache.event.Registration<K,V>

public final class Registration<K,V> extends Object
The registration of a CacheEntryListener for event dispatching.
Author:
ben.manes@gmail.com (Ben Manes)
  • Constructor Summary

    Constructors
    Constructor
    Description
    Registration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> configuration, javax.cache.event.CacheEntryEventFilter<K,V> filter, com.github.benmanes.caffeine.jcache.event.EventTypeAwareListener<K,V> listener)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.cache.event.CacheEntryEventFilter<K,V>
     
    com.github.benmanes.caffeine.jcache.event.EventTypeAwareListener<K,V>
     
    javax.cache.configuration.CacheEntryListenerConfiguration<K,V>
     
    boolean
    See CacheEntryListenerConfiguration.isSynchronous().

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Registration

      public Registration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> configuration, javax.cache.event.CacheEntryEventFilter<K,V> filter, com.github.benmanes.caffeine.jcache.event.EventTypeAwareListener<K,V> listener)
  • Method Details

    • getConfiguration

      public javax.cache.configuration.CacheEntryListenerConfiguration<K,V> getConfiguration()
      Returns:
      the configuration
    • getCacheEntryListener

      public com.github.benmanes.caffeine.jcache.event.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()
      See CacheEntryListenerConfiguration.isSynchronous().