VMware Tanzu GemFire Native C++ Reference 10.3.0
|
An object in a Region that represents an entry, i.e., a key-value pair. More...
#include <RegionEntry.hpp>
Public Member Functions | |
std::shared_ptr< CacheableKey > | getKey () |
Returns the key for this entry. More... | |
std::shared_ptr< Region > | getRegion () |
Returns the region that contains this entry. More... | |
std::shared_ptr< CacheStatistics > | getStatistics () |
Returns the statistics for this entry. More... | |
std::shared_ptr< Cacheable > | getValue () |
Returns the value of this entry in the local cache. More... | |
bool | isDestroyed () const |
Returns whether this entry has been destroyed. More... | |
RegionEntry (const std::shared_ptr< Region > ®ion, const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Cacheable > &value) | |
constructors created by region More... | |
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.
apache::geode::client::RegionEntry::RegionEntry | ( | const std::shared_ptr< Region > & | region, |
const std::shared_ptr< CacheableKey > & | key, | ||
const std::shared_ptr< Cacheable > & | value | ||
) |
constructors created by region
std::shared_ptr< CacheableKey > apache::geode::client::RegionEntry::getKey | ( | ) |
Returns the key for this entry.
std::shared_ptr< Region > apache::geode::client::RegionEntry::getRegion | ( | ) |
Returns the region that contains this entry.
std::shared_ptr< CacheStatistics > apache::geode::client::RegionEntry::getStatistics | ( | ) |
Returns the statistics for this entry.
StatisticsDisabledException | if statistics have been disabled for this region |
std::shared_ptr< Cacheable > apache::geode::client::RegionEntry::getValue | ( | ) |
Returns the value of this entry in the local cache.
Does not invoke a CacheLoader
,
nullptr
if this entry is invalid 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.