Show / Hide Table of Contents

Class ContinuousQueryCache.EventRouter

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

Inheritance
object
MultiplexingCacheListener
ContinuousQueryCache.EventRouter
Implements
ICacheListener
Inherited Members
MultiplexingCacheListener.EntryInserted(CacheEventArgs)
MultiplexingCacheListener.EntryUpdated(CacheEventArgs)
MultiplexingCacheListener.EntryDeleted(CacheEventArgs)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
protected class ContinuousQueryCache.EventRouter : MultiplexingCacheListener, ICacheListener

Constructors

EventRouter(ContinuousQueryCache, ICacheListener, bool)

Construct an EventRouter to route events from the internal cache of the ContinuousQueryCache to the client listeners.

Declaration
public EventRouter(ContinuousQueryCache parentQueryCache, ICacheListener listener, bool fLite)
Parameters
Type Name Description
ContinuousQueryCache parentQueryCache

Parent cache instance.

ICacheListener listener

A client listener.

bool fLite

true to indicate the the event objects passed to the listener does not have to include old or new values in order to allow optimizations.

Methods

CreateLocalCacheEvent(CacheEventArgs)

Construct a new local CacheEventArgs to dispatch to local listeners.

Declaration
protected CacheEventArgs CreateLocalCacheEvent(CacheEventArgs source)
Parameters
Type Name Description
CacheEventArgs source

the source event from the back cache

Returns
Type Description
CacheEventArgs

the new local CacheEventArgs

Equals(object)

Compare the EventRouter with another object to determine equality.

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
object o

The object to compare to.

Returns
Type Description
bool

true if this EventRouter and the passed object are equivalent listeners.

Overrides
object.Equals(object)

GetHashCode()

Determine a hash value for the EventRouter object according to the general Object.GetHashCode() contract.

Declaration
public override int GetHashCode()
Returns
Type Description
int

an integer hash value for this EventRouter

Overrides
object.GetHashCode()

OnCacheEvent(CacheEventArgs)

Invoked when a cache entry has been inserted, updated or deleted.

Declaration
protected override void OnCacheEvent(CacheEventArgs evt)
Parameters
Type Name Description
CacheEventArgs evt

The CacheEventArgs carrying the insert, update or delete information.

Overrides
MultiplexingCacheListener.OnCacheEvent(CacheEventArgs)
Remarks

To determine what action has occurred, use EventType property.

ToString()

Produce a human-readable description of this EventRouter.

Declaration
public override string ToString()
Returns
Type Description
string

A String describing this EventRouter.

Overrides
object.ToString()

Implements

ICacheListener
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.