CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.util
Class MapListenerSupport.WrapperSynchronousListener

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.MapListenerSupport.WrapperSynchronousListener
All Implemented Interfaces:
MapListener, MapListenerSupport.SynchronousListener, EventListener
Enclosing class:
MapListenerSupport

public static class MapListenerSupport.WrapperSynchronousListener
extends Base
implements MapListenerSupport.SynchronousListener

A wrapper class that turns the specified MapListener into a synchronous listener.


Constructor Summary
MapListenerSupport.WrapperSynchronousListener(MapListener listener)
          Counstruct WrapperSynchronousListener.
 
Method Summary
 void entryDeleted(MapEvent evt)
          Invoked when a map entry has been removed.
 void entryInserted(MapEvent evt)
          Invoked when a map entry has been inserted.
 void entryUpdated(MapEvent evt)
          Invoked when a map entry has been updated.
 boolean equals(Object o)
          Compare the WrapperSynchronousListener with another object to determine equality.
 int hashCode()
          Determine a hash value for the WrapperSynchronousListener object according to the general Object.hashCode() contract.
 

Constructor Detail

MapListenerSupport.WrapperSynchronousListener

public MapListenerSupport.WrapperSynchronousListener(MapListener listener)
Counstruct WrapperSynchronousListener.

Parameters:
listener - the wrapped MapListener
Method Detail

entryInserted

public void entryInserted(MapEvent evt)
Invoked when a map entry has been inserted.

Specified by:
entryInserted in interface MapListener
Parameters:
evt - the MapEvent carrying the insert information

entryUpdated

public void entryUpdated(MapEvent evt)
Invoked when a map entry has been updated.

Specified by:
entryUpdated in interface MapListener
Parameters:
evt - the MapEvent carrying the update information

entryDeleted

public void entryDeleted(MapEvent evt)
Invoked when a map entry has been removed.

Specified by:
entryDeleted in interface MapListener
Parameters:
evt - the MapEvent carrying the delete information

hashCode

public int hashCode()
Determine a hash value for the WrapperSynchronousListener object according to the general Object.hashCode() contract.

Returns:
an integer hash value for this WrapperSynchronousListener

equals

public boolean equals(Object o)
Compare the WrapperSynchronousListener with another object to determine equality.

Returns:
true iff this WrapperSynchronousListener and the passed object are equivalent listeners

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation