Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


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, SynchronousListener, java.util.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(java.lang.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(java.lang.Object o)
Compare the WrapperSynchronousListener with another object to determine equality.
Returns:
true iff this WrapperSynchronousListener and the passed object are equivalent listeners

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.