VMware GemFire Native C++ Reference  9.2.4
apache::geode::client::RegionEntry Class Reference

Inherits apache::geode::client::SharedBase.

Public Member Functions

CacheableKeyPtr getKey ()
 Returns the key for this entry. More...
 
void getRegion (RegionPtr &region)
 Returns the region that contains this entry. More...
 
void getStatistics (CacheStatisticsPtr &csptr)
 Returns the statistics for this entry. More...
 
CacheablePtr getValue ()
 Returns the value of this entry in the local cache. More...
 
bool isDestroyed () const
 Returns whether this entry has been destroyed. More...
 
void preserveSB () const
 Atomically increment reference count. More...
 
int32_t refCount ()
 
void releaseSB () const
 Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. More...
 
virtual ~RegionEntry ()
 destructor More...
 

Detailed Description

An object in a Region that represents an entry, i.e., a key-value pair.

This object's operations are not distributed, do not acquire any locks, and do not affect CacheStatistics.

Unless otherwise noted, all of these methods throw a CacheClosedException if the Cache is closed at the time of invocation, or an EntryDestroyedException if the entry has been destroyed.

Constructor & Destructor Documentation

◆ ~RegionEntry()

virtual apache::geode::client::RegionEntry::~RegionEntry ( )
virtual

destructor

Member Function Documentation

◆ getKey()

CacheableKeyPtr apache::geode::client::RegionEntry::getKey ( )

Returns the key for this entry.

Returns
the key for this entry

◆ getRegion()

void apache::geode::client::RegionEntry::getRegion ( RegionPtr region)

Returns the region that contains this entry.

Returns
the Region that contains this entry

◆ getStatistics()

void apache::geode::client::RegionEntry::getStatistics ( CacheStatisticsPtr csptr)

Returns the statistics for this entry.

Returns
the CacheStatistics for this entry
Exceptions
StatisticsDisabledExceptionif statistics have been disabled for this region

◆ getValue()

CacheablePtr apache::geode::client::RegionEntry::getValue ( )

Returns the value of this entry in the local cache.

Does not invoke a CacheLoader,

Returns
the value or NULLPTR if this entry is invalid

◆ isDestroyed()

bool apache::geode::client::RegionEntry::isDestroyed ( ) const

Returns whether this entry has been destroyed.

Does not throw a EntryDestroyedException if this entry has been destroyed.

Returns
true if this entry has been destroyed

◆ preserveSB()

void apache::geode::client::SharedBase::preserveSB ( ) const
inherited

Atomically increment reference count.

◆ refCount()

int32_t apache::geode::client::SharedBase::refCount ( )
inlineinherited
Returns
the reference count

◆ releaseSB()

void apache::geode::client::SharedBase::releaseSB ( ) const
inherited

Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.


Pivotal GemFire C++ Cache API Documentation