Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

MapTriggerListener Class Reference

#include <coherence/util/MapTriggerListener.hpp>

Inherits MultiplexingMapListener.

List of all members.


Detailed Description

MapTriggerListener is a special purpose MapListener implementation that is used to register a MapTrigger on a corresponding ObservableMap.

Note: Currently, the MapTriggerListener can only be registered with partitioned caches and only "globally" (without specifying any filter or key), using the ObservableMap::addMapListener() method.

Author:
djl 2008.06.23
 

Public Types

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

Public Member Functions

virtual void onMapEvent (MapEvent::View vEvent)
 Invoked when a map entry has been inserted, updated or deleted.

To determine what action has occurred, use MapEvent::getId().

Parameters:
 vEvent the MapEvent carrying the insert, update or delete information
virtual MapTrigger::View getTrigger () const
 Obtain the MapTrigger agent represented by this TriggerListener.
virtual
MapTrigger::Handle 
getTrigger ()
 Obtain the MapTrigger agent represented by this TriggerListener.

Protected Member Functions

 MapTriggerListener (MapTrigger::Handle hTrigger)
 Construct a MapTriggerListener that can be used to register the specified MapTrigger.

Protected Attributes

MemberHandle
< MapTrigger
m_hTrigger
 The underlying MapTrigger.

Constructor & Destructor Documentation

MapTriggerListener ( MapTrigger::Handle  hTrigger  )  [protected]

Construct a MapTriggerListener that can be used to register the specified MapTrigger.

Parameters:
 hTrigger the MapTrigger


Member Function Documentation

virtual MapTrigger::View getTrigger (  )  const [virtual]

Obtain the MapTrigger agent represented by this TriggerListener.

Returns:
the MapTrigger agent represented by this TriggerListener

virtual MapTrigger::Handle getTrigger (  )  [virtual]

Obtain the MapTrigger agent represented by this TriggerListener.

Returns:
the MapTrigger agent represented by this TriggerListener


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