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.
Implements
Inherited Members
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
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
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
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. |