Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
ContinuousQueryCache Constructor (INamedCache, IFilter, ICacheListener)
ContinuousQueryCache Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Create a materialized view of an INamedCache using an IFilter.

Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    public ContinuousQueryCache(
    	INamedCache cache,
    	IFilter filter,
    	ICacheListener listener
    )

#### Parameters

cache
  Type: Tangosol.Net..::.INamedCache
  The INamedCache to create a view of.

filter
  Type: Tangosol.Util..::.IFilter
  The IFilter that defines the view.

listener
  Type: Tangosol.Net.Cache..::.ICacheListener
  An initial ICacheListener that will receive all the events from the ContinuousQueryCache, including those corresponding to its initial population.

# Remarks

A materialized view is an implementation of Continuous Query exposed through the standard INamedCache API. This constructor allows a client to receive all events, including those that result from the initial population of the ContinuousQueryCache. In other words, all contents of the ContinuousQueryCache will be delivered to the listener as a sequence of events, including those items that already exist in the underlying (unfiltered) cache. Note that this constructor will always result in both the keys and values being cached locally if a listener is passed.

# See Also

ContinuousQueryCache Class
ContinuousQueryCache Overload
Tangosol.Net.Cache Namespace