Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.net.cache
Class ContinuousQueryCache.EventRouter

    java.lang.Object
      com.tangosol.util.Base
          com.tangosol.util.MultiplexingMapListener
              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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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