gemfire::EntryEvent Class Reference


Detailed Description

Represents an entry event affecting an entry, including its identity and the the circumstances of the event.


Public Member Functions

 EntryEvent ()
 Constructor.
 EntryEvent (const RegionPtr &region, const CacheableKeyPtr &key, const CacheablePtr &oldValue, const CacheablePtr &newValue, const bool remoteOrigin)
 Constructor, given all values.
CacheableKeyPtr getKey () const
 
Returns:
the key this event describes.

CacheablePtr getNewValue () const
 If the event is a destroy or invalidate operation, then the new value will be NULL.
CacheablePtr getOldValue () const
 If the prior state of the entry was invalid, or non-existent/destroyed, then the old value will be NULL.
RegionPtr getRegion () const
 
Returns:
the region this event occurred in.

bool remoteOrigin () const
 If the event originated in a remote process, returns true.
virtual ~EntryEvent ()
 Destructor.

Protected Attributes

CacheableKeyPtr m_key
 Cacheable key.
CacheablePtr m_newValue
 New value.
CacheablePtr m_oldValue
 Old value.
RegionPtr m_region
 Region.
bool m_remoteOrigin
 True if from a remote (non-local) process.


Constructor & Destructor Documentation

gemfire::EntryEvent::EntryEvent ( const RegionPtr region,
const CacheableKeyPtr key,
const CacheablePtr oldValue,
const CacheablePtr newValue,
const bool  remoteOrigin 
)

Constructor, given all values.

virtual gemfire::EntryEvent::~EntryEvent (  )  [virtual]

Destructor.

gemfire::EntryEvent::EntryEvent (  ) 

Constructor.


Member Function Documentation

CacheableKeyPtr gemfire::EntryEvent::getKey (  )  const [inline]

Returns:
the key this event describes.

CacheablePtr gemfire::EntryEvent::getNewValue (  )  const [inline]

If the event is a destroy or invalidate operation, then the new value will be NULL.

Returns:
the updated value from this event

CacheablePtr gemfire::EntryEvent::getOldValue (  )  const [inline]

If the prior state of the entry was invalid, or non-existent/destroyed, then the old value will be NULL.

Returns:
the old value in the cache.

RegionPtr gemfire::EntryEvent::getRegion (  )  const

Returns:
the region this event occurred in.

bool gemfire::EntryEvent::remoteOrigin (  )  const

If the event originated in a remote process, returns true.


Field Documentation

CacheableKeyPtr gemfire::EntryEvent::m_key [protected]

Cacheable key.

CacheablePtr gemfire::EntryEvent::m_newValue [protected]

New value.

CacheablePtr gemfire::EntryEvent::m_oldValue [protected]

Old value.

RegionPtr gemfire::EntryEvent::m_region [protected]

Region.

bool gemfire::EntryEvent::m_remoteOrigin [protected]

True if from a remote (non-local) process.


GemFire C++ Cache API Documentation