Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


com.tangosol.net.cache
Class ContinuousQueryCache.EventRouter

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.MultiplexingMapListener
          extended by com.tangosol.net.cache.ContinuousQueryCache.EventRouter

All Implemented Interfaces:
MapListener, java.util.EventListener
Enclosing class:
ContinuousQueryCache

protected class ContinuousQueryCache.EventRouter
extends MultiplexingMapListener

An EventRouter routes events from the internal cache of the ContinuousQueryCache to the client listeners, and it can do so asynchronously when appropriate.


Constructor Summary
ContinuousQueryCache.EventRouter(MapListener listener)
          Construct an EventRouter to route events from the internal cache of the ContinuousQueryCache to the client listeners.

 

Method Summary
 boolean equals(java.lang.Object o)
          Compare the EventRouter with another object to determine equality.
 int hashCode()
          Determine a hash value for the EventRouter object according to the general Object.hashCode() contract.
protected  void onMapEvent(MapEvent evt)
          Invoked when a map entry has been inserted, updated or deleted.
 java.lang.String toString()
          Produce a human-readable description of this EventRouter.

 

Methods inherited from class com.tangosol.util.MultiplexingMapListener
entryDeleted, entryInserted, entryUpdated

 

Constructor Detail

ContinuousQueryCache.EventRouter

public ContinuousQueryCache.EventRouter(MapListener listener)
Construct an EventRouter to route events from the internal cache of the ContinuousQueryCache to the client listeners.
Parameters:
listener - a client listener

Method Detail

onMapEvent

protected void onMapEvent(MapEvent 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
Parameters:
evt - the MapEvent carrying the insert, update or delete information

hashCode

public int hashCode()
Determine a hash value for the EventRouter object according to the general Object.hashCode() contract.
Returns:
an integer hash value for this EventRouter

equals

public boolean equals(java.lang.Object o)
Compare the EventRouter with another object to determine equality.
Returns:
true iff this EventRouter and the passed object are equivalent listeners

toString

public java.lang.String toString()
Produce a human-readable description of this EventRouter.
Returns:
a String describing this EventRouter

Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


Copyright © 2000, 2009, Oracle. All rights reserved.