Class CoherenceCacheEntryListenerRegistration<K,​V>

  • Type Parameters:
    K - the type of keys
    V - the type of values

    public class CoherenceCacheEntryListenerRegistration<K,​V>
    extends Object
    A runtime representation of a CacheEntryListener registration, including its CacheEntryListenerConfiguration.
    Since:
    Coherence 12.1.3
    Author:
    jf 2013.10.24
    • Constructor Detail

      • CoherenceCacheEntryListenerRegistration

        public CoherenceCacheEntryListenerRegistration​(javax.cache.configuration.CacheEntryListenerConfiguration<K,​V> configuration)
        Constructs a CoherenceCacheEntryListenerRegistration based on a CacheEntryListenerConfiguration.
        Parameters:
        configuration - the CacheEntryListenerConfiguration
    • Method Detail

      • getCacheEntryFilter

        public javax.cache.event.CacheEntryEventFilter<? super K,​? super V> getCacheEntryFilter()
        Obtains an instance of the CacheEntryEventFilter for the registration. If no instance has been previously instantiated, one is created.
        Returns:
        the CacheEntryEventFilter for the registration
      • getCacheEntryListener

        public javax.cache.event.CacheEntryListener<? super K,​? super V> getCacheEntryListener()
        Obtains an instance of the CacheEntryListener for the registration. If no instance has been previously instantiated, one is created.
        Returns:
        the CacheEntryListener for the registration
      • getConfiguration

        public javax.cache.configuration.CacheEntryListenerConfiguration<K,​V> getConfiguration()
        Obtains the underlying CacheEntryListenerConfiguration used to create the registration
        Returns:
        the CacheEntryListenerConfiguration
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object