Class MapListenerSupport.WrapperListener<K,V>

java.lang.Object
com.tangosol.util.Base
com.tangosol.util.MultiplexingMapListener<K,V>
com.tangosol.util.MapListenerSupport.WrapperListener<K,V>
All Implemented Interfaces:
MapListener<K,V>, EventListener
Direct Known Subclasses:
ConverterCollections.ConverterMapListener, MapListenerSupport.WrapperSynchronousListener
Enclosing class:
MapListenerSupport

public abstract static class MapListenerSupport.WrapperListener<K,V> extends MultiplexingMapListener<K,V>
A base class for various wrapper listener classes.
  • Field Details

    • f_listener

      protected final MapListener<K,V> f_listener
      Wrapped MapListener.
  • Constructor Details

    • WrapperListener

      public WrapperListener(MapListener<K,V> listener)
      Construct WrapperSynchronousListener.
      Parameters:
      listener - the wrapped MapListener
  • Method Details

    • onMapEvent

      protected void onMapEvent(MapEvent<K,V> evt)
      Invoked when a map entry has been inserted, updated or deleted. To determine what action has occurred, use MapEvent.getId().
      Specified by:
      onMapEvent in class MultiplexingMapListener<K,V>
      Parameters:
      evt - the MapEvent carrying the insert, update or delete information
    • characteristics

      public int characteristics()
      Description copied from interface: MapListener
      A bit mask representing the set of characteristics of this listener.

      By default, characteristics suggest this listener is MapListener.ASYNCHRONOUS.

      Returns:
      a bit mask representing the set of characteristics of this listener
      See Also:
    • getMapListener

      public MapListener<K,V> getMapListener()
      Return the underlying MapListener.
      Returns:
      the underlying MapListener
    • hashCode

      public int hashCode()
      Determine a hash value for the WrapperListener object according to the general Object.hashCode() contract.
      Overrides:
      hashCode in class Object
      Returns:
      an integer hash value for this WrapperListener
    • equals

      public boolean equals(Object o)
      Compare the WrapperListener with another object to determine equality.
      Overrides:
      equals in class MultiplexingMapListener<K,V>
      Returns:
      true iff this WrapperListener and the passed object are equivalent listeners
    • toString

      public String toString()
      Overrides:
      toString in class Object