Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.1.0)

E69640-01

CacheEventFilter Class Reference

#include <coherence/util/filter/CacheEventFilter.hpp>

Inherits MapEventFilter.

List of all members.


Detailed Description

An extension of the MapEventFilter which allows selection of client driven (natural) events, cache internal (synthetic) events, or both.

Author:
rhl 2013.04.10

Public Types

typedef spec::Handle Handle
 CacheEventFilter Handle definition.
typedef spec::View View
 CacheEventFilter View definition.
typedef spec::Holder Holder
 CacheEventFilter Holder definition.

Public Member Functions

virtual bool evaluate (Object::View v) const
 
virtual void readExternal (PofReader::Handle hIn)
 
virtual void writeExternal (PofWriter::Handle hOut) const
 
virtual bool equals (Object::View v) const
 
virtual size32_t hashCode () const
 
virtual String::View getDescription () const
 

Static Public Attributes

static const int32_t e_synthetic
 Bitmask to select synthetic events.
static const int32_t e_natural
 Bitmask to select natural events.

Protected Member Functions

 CacheEventFilter ()
 Default constructor (necessary for the PortableObject interface).
 CacheEventFilter (int32_t nMask, int32_t nMaskSynthetic)
 Construct a CacheEventFilter that evaluates MapEvent objects based on the specified combination of event types.
 CacheEventFilter (Filter::View vFilter, int32_t nMaskSynthetic)
 Construct a CacheEventFilter that evaluates MapEvent objects that would affect the results of a keySet filter issued by a previous call to coherence::util::QueryMap::keySet(coherence::util::Filter::View).
 CacheEventFilter (int32_t nMask, Filter::View vFilter, int32_t nMaskSynthetic)
 Construct a CacheEventFilter that evaluates MapEvent objects based on the specified combination of event types.

Protected Attributes

int32_t m_nMaskSynthetic
 Bitmask that selects whether to include synthetic, natural, or all events.

Constructor & Destructor Documentation

CacheEventFilter ( int32_t  nMask,
int32_t  nMaskSynthetic 
) [protected]

Construct a CacheEventFilter that evaluates MapEvent objects based on the specified combination of event types.

Parameters:
vFilter the filter passed previously to a keySet() query method
nMaskSynthetic any combination of e_synthetic and e_natural

CacheEventFilter ( Filter::View  vFilter,
int32_t  nMaskSynthetic 
) [protected]

Construct a CacheEventFilter that evaluates MapEvent objects that would affect the results of a keySet filter issued by a previous call to coherence::util::QueryMap::keySet(coherence::util::Filter::View).

It is possible to easily implement continuous query functionality.

Using this constructor is equivalent to: CacheEventFilter::create(e_keyset, vFilter, nMaskSynthetic);

Parameters:
vFilter the filter passed previously to a keySet() query method
nMaskSynthetic any combination of e_synthetic and e_natural

CacheEventFilter ( int32_t  nMask,
Filter::View  vFilter,
int32_t  nMaskSynthetic 
) [protected]

Construct a CacheEventFilter that evaluates MapEvent objects based on the specified combination of event types.

Parameters:
nMask any combination of e_inserted, e_updated, e_deleted, e_updated_entered, e_updated_within, and e_updated_left
vFilter the filter passed previously to a keySet() query method
nMaskSynthetic any combination of e_synthetic and e_natural


The documentation for this class was generated from the following file:
Copyright © 2000, 2016, Oracle and/or its affiliates. All rights reserved.