Class SimpleMapListener<K,V>

java.lang.Object
com.oracle.coherence.spring.event.mapevent.SimpleMapListener<K,V>
Type Parameters:
K - the type of the cache key
V - the type of the cache value
All Implemented Interfaces:
com.tangosol.util.MapListener<K,V>, Comparable<SimpleMapListener<?,?>>, EventListener
Direct Known Subclasses:
AnnotatedMapListener

public class SimpleMapListener<K,V> extends Object implements com.tangosol.util.MapListener<K,V>, Comparable<SimpleMapListener<?,?>>
MapListener implementation that dispatches MapEvents to CoherenceEventListener annotated methods.
Since:
3.0
Author:
Gunnar Hillert
See Also:
  • MapListenerRegistrationBean.registerMapListeners(CacheLifecycleEvent)
  • Field Details

  • Constructor Details

  • Method Details

    • entryInserted

      public void entryInserted(com.tangosol.util.MapEvent<K,V> event)
      Specified by:
      entryInserted in interface com.tangosol.util.MapListener<K,V>
    • entryUpdated

      public void entryUpdated(com.tangosol.util.MapEvent<K,V> event)
      Specified by:
      entryUpdated in interface com.tangosol.util.MapListener<K,V>
    • entryDeleted

      public void entryDeleted(com.tangosol.util.MapEvent<K,V> event)
      Specified by:
      entryDeleted in interface com.tangosol.util.MapListener<K,V>
    • compareTo

      public int compareTo(SimpleMapListener<?,?> other)
      Specified by:
      compareTo in interface Comparable<K>
    • getSession

      public String getSession()
      Return the name of the session that this listener is for.
      Returns:
      the name of the session this listener is for
    • setSession

      public void setSession(String session)
    • getFilter

      public com.tangosol.util.Filter<?> getFilter()
      Obtain the Filter that should be used when registering this listener.
      Returns:
      the Filter that should be used when registering this listener
    • setFilter

      public void setFilter(com.tangosol.util.Filter<?> filter)
    • getTransformer

      public com.tangosol.util.MapEventTransformer getTransformer()
      Obtain the MapEventTransformer that should be used when registering this listener.
      Returns:
      the MapEventTransformer that should be used when registering this listener
    • setTransformer

      public void setTransformer(com.tangosol.util.MapEventTransformer<K,V,?> transformer)
    • setCacheName

      public void setCacheName(String cacheName)
    • setServiceName

      public void setServiceName(String serviceName)
    • setScopeName

      public void setScopeName(String scopeName)
    • setLiteEvent

      public void setLiteEvent(boolean liteEvents)
    • isSynchronous

      public boolean isSynchronous()
      Return true if this is synchronous event listener.
      Specified by:
      isSynchronous in interface com.tangosol.util.MapListener<K,V>
      Returns:
      true if this is synchronous event listener
    • setSynchronousEvents

      public void setSynchronousEvents(boolean synchronousEvents)
    • addType

      protected void addType(MapEventType type)
      Add specified event type to a set of types this interceptor should handle.
      Parameters:
      type - the event type to add
    • getObserver

      public MethodMapListener<K,V> getObserver()
    • toString

      public String toString()
      Overrides:
      toString in class Object