VMware Tanzu GemFire Native C++ Reference
10.1.5
|
20 #ifndef GEODE_REGION_H_
21 #define GEODE_REGION_H_
31 #include "CacheWriter.hpp"
35 #include "ExceptionTypes.hpp"
36 #include "PartitionResolver.hpp"
41 #include "Serializable.hpp"
42 #include "internal/geode_globals.hpp"
49 class AttributesMutator;
51 class CacheStatistics;
53 class RegionAttributes;
59 static constexpr std::chrono::milliseconds DEFAULT_RESPONSE_TIMEOUT =
60 std::chrono::seconds(15);
95 class APACHE_GEODE_EXPORT
Region :
public std::enable_shared_from_this<Region> {
100 virtual const std::string&
getName()
const = 0;
125 virtual std::shared_ptr<CacheStatistics> getStatistics()
const = 0;
144 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
166 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
205 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
214 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
223 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
245 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
249 virtual std::shared_ptr<Region>
getSubregion(
const std::string& path) = 0;
263 const bool recursive) = 0;
269 const std::shared_ptr<CacheableKey>& key) = 0;
272 template <
class KEYTYPE>
273 inline std::shared_ptr<RegionEntry>
getEntry(
const KEYTYPE& key) {
318 virtual std::shared_ptr<Cacheable>
get(
319 const std::shared_ptr<CacheableKey>& key,
320 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
323 template <
class KEYTYPE>
324 inline std::shared_ptr<Cacheable>
get(
326 const std::shared_ptr<Serializable>& callbackArg =
nullptr) {
376 const std::shared_ptr<CacheableKey>& key,
377 const std::shared_ptr<Cacheable>& value,
378 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
381 template <
class KEYTYPE,
class VALUETYPE>
382 inline void put(
const KEYTYPE& key,
const VALUETYPE& value,
383 const std::shared_ptr<Serializable>& arg =
nullptr) {
388 template <
class KEYTYPE>
389 inline void put(
const KEYTYPE& key,
const std::shared_ptr<Cacheable>& value,
390 const std::shared_ptr<Serializable>& arg =
nullptr) {
395 template <
class VALUETYPE>
396 inline void put(
const std::shared_ptr<CacheableKey>& key,
397 const VALUETYPE& value,
398 const std::shared_ptr<Serializable>& arg =
nullptr) {
421 const HashMapOfCacheable& map,
422 std::chrono::milliseconds timeout = DEFAULT_RESPONSE_TIMEOUT,
423 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
450 const std::shared_ptr<CacheableKey>& key,
451 const std::shared_ptr<Cacheable>& value,
452 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
455 template <
class KEYTYPE,
class VALUETYPE>
456 inline void localPut(
const KEYTYPE& key,
const VALUETYPE& value,
457 const std::shared_ptr<Serializable>& arg =
nullptr) {
462 template <
class KEYTYPE>
464 const std::shared_ptr<Cacheable>& value,
465 const std::shared_ptr<Serializable>& arg =
nullptr) {
470 template <
class VALUETYPE>
471 inline void localPut(
const std::shared_ptr<CacheableKey>& key,
472 const VALUETYPE& value,
473 const std::shared_ptr<Serializable>& arg =
nullptr) {
524 const std::shared_ptr<CacheableKey>& key,
525 const std::shared_ptr<Cacheable>& value,
526 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
529 template <
class KEYTYPE,
class VALUETYPE>
530 inline void create(
const KEYTYPE& key,
const VALUETYPE& value,
531 const std::shared_ptr<Serializable>& arg =
nullptr) {
536 template <
class KEYTYPE>
538 const std::shared_ptr<Cacheable>& value,
539 const std::shared_ptr<Serializable>& arg =
nullptr) {
544 template <
class VALUETYPE>
545 inline void create(
const std::shared_ptr<CacheableKey>& key,
546 const VALUETYPE& value,
547 const std::shared_ptr<Serializable>& arg =
nullptr) {
577 const std::shared_ptr<CacheableKey>& key,
578 const std::shared_ptr<Cacheable>& value,
579 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
582 template <
class KEYTYPE,
class VALUETYPE>
583 inline void localCreate(
const KEYTYPE& key,
const VALUETYPE& value,
584 const std::shared_ptr<Serializable>& arg =
nullptr) {
589 template <
class KEYTYPE>
591 const std::shared_ptr<Cacheable>& value,
592 const std::shared_ptr<Serializable>& arg =
nullptr) {
597 template <
class VALUETYPE>
599 const VALUETYPE& value,
600 const std::shared_ptr<Serializable>& arg =
nullptr) {
627 const std::shared_ptr<CacheableKey>& key,
628 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
631 template <
class KEYTYPE>
633 const std::shared_ptr<Serializable>& arg =
nullptr) {
658 const std::shared_ptr<CacheableKey>& key,
659 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
662 template <
class KEYTYPE>
664 const KEYTYPE& key,
const std::shared_ptr<Serializable>& arg =
nullptr) {
713 const std::shared_ptr<CacheableKey>& key,
714 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
717 template <
class KEYTYPE>
719 const std::shared_ptr<Serializable>& arg =
nullptr) {
748 const std::shared_ptr<CacheableKey>& key,
749 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
752 template <
class KEYTYPE>
754 const std::shared_ptr<Serializable>& arg =
nullptr) {
807 const std::shared_ptr<CacheableKey>& key,
808 const std::shared_ptr<Cacheable>& value,
809 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
812 template <
class KEYTYPE,
class VALUETYPE>
813 inline bool remove(
const KEYTYPE& key,
const VALUETYPE& value,
814 const std::shared_ptr<Serializable>& arg =
nullptr) {
819 template <
class KEYTYPE>
821 const std::shared_ptr<Cacheable>& value,
822 const std::shared_ptr<Serializable>& arg =
nullptr) {
827 template <
class VALUETYPE>
828 inline bool remove(
const std::shared_ptr<CacheableKey>& key,
829 const VALUETYPE& value,
830 const std::shared_ptr<Serializable>& arg =
nullptr) {
834 bool remove(
const std::shared_ptr<CacheableKey>& key) {
835 return removeEx(key);
839 template <
class KEYTYPE>
891 const std::shared_ptr<CacheableKey>& key,
892 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
895 template <
class KEYTYPE>
897 const std::shared_ptr<Serializable>& arg =
nullptr) {
929 const std::shared_ptr<CacheableKey>& key,
930 const std::shared_ptr<Cacheable>& value,
931 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
934 template <
class KEYTYPE,
class VALUETYPE>
935 inline bool localRemove(
const KEYTYPE& key,
const VALUETYPE& value,
936 const std::shared_ptr<Serializable>& arg =
nullptr) {
942 template <
class KEYTYPE>
944 const std::shared_ptr<Cacheable>& value,
945 const std::shared_ptr<Serializable>& arg =
nullptr) {
950 template <
class VALUETYPE>
952 const VALUETYPE& value,
953 const std::shared_ptr<Serializable>& arg =
nullptr) {
984 const std::shared_ptr<CacheableKey>& key,
985 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
988 template <
class KEYTYPE>
990 const KEYTYPE& key,
const std::shared_ptr<Serializable>& arg =
nullptr) {
998 virtual std::vector<std::shared_ptr<CacheableKey>>
keys() = 0;
1025 virtual std::vector<std::shared_ptr<CacheableKey>>
serverKeys() = 0;
1031 virtual std::vector<std::shared_ptr<Cacheable>>
values() = 0;
1033 virtual std::vector<std::shared_ptr<RegionEntry>> entries(
bool recursive) = 0;
1041 virtual bool isDestroyed()
const = 0;
1049 const std::shared_ptr<CacheableKey>& keyPtr)
const = 0;
1057 template <
class KEYTYPE>
1068 const std::shared_ptr<CacheableKey>& keyPtr)
const = 0;
1076 const std::shared_ptr<CacheableKey>& keyPtr)
const = 0;
1099 template <
class KEYTYPE>
1140 const std::vector<std::shared_ptr<CacheableKey>>& keys,
1141 bool isDurable =
false,
bool getInitialValues =
false,
1142 bool receiveValues =
true) = 0;
1170 const std::vector<std::shared_ptr<CacheableKey>>& keys) = 0;
1205 bool getInitialValues =
false,
1206 bool receiveValues =
true) = 0;
1276 bool getInitialValues =
false,
1277 bool receiveValues =
true) = 0;
1351 const std::vector<std::shared_ptr<CacheableKey>>& keys,
1352 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
1380 virtual std::shared_ptr<SelectResults>
query(
1381 const std::string& predicate,
1382 std::chrono::milliseconds timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
1405 const std::string& predicate,
1406 std::chrono::milliseconds timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
1431 const std::string& predicate,
1432 std::chrono::milliseconds timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
1462 const std::vector<std::shared_ptr<CacheableKey>>& keys,
1463 const std::shared_ptr<Serializable>& aCallbackArgument =
nullptr) = 0;
1471 virtual const std::shared_ptr<Pool>& getPool()
const = 0;
1479 explicit Region(CacheImpl* cacheImpl);
1480 virtual ~
Region() noexcept;
1482 CacheImpl* m_cacheImpl;
1489 #endif // GEODE_REGION_H_
virtual void put(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Places a new value into an entry in this region with the specified key, providing a user-defined para...
virtual std::shared_ptr< Region > createSubregion(const std::string &subregionName, RegionAttributes aRegionAttributes)=0
Creates a subregion with the specified attributes.
virtual void destroy(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Destroys the entry with the specified key, and provides a user-defined parameter object to any CacheW...
void localCreate(const std::shared_ptr< CacheableKey > &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing value to be a const char*.
Definition: Region.hpp:598
virtual void removeAll(const std::vector< std::shared_ptr< CacheableKey >> &keys, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Removes all of the entries for the specified keys from this region.
virtual std::shared_ptr< AttributesMutator > getAttributesMutator() const =0
Return the a mutator object for changing a subset of the region attributes.
virtual void unregisterRegex(const std::string ®ex)=0
Unregisters a regular expression to stop getting updates for keys from the server.
virtual void putAll(const HashMapOfCacheable &map, std::chrono::milliseconds timeout=DEFAULT_RESPONSE_TIMEOUT, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Places a set of new values in this region with the specified keys given as a map of key/value pairs.
void localDestroy(const KEYTYPE &key, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:753
virtual bool localRemoveEx(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Removes the entry with the specified key in the local cache only, and provides a user-defined paramet...
virtual const std::string & getName() const =0
Public Methods.
bool localRemove(const KEYTYPE &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing both key and value to be a const char*.
Definition: Region.hpp:935
void localCreate(const KEYTYPE &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing both key and value to be a const char*.
Definition: Region.hpp:583
bool localRemove(const KEYTYPE &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:943
virtual void localDestroyRegion(const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Destroys the whole region and provides a user-defined parameter object to any CacheWriter invoked in ...
virtual std::shared_ptr< SelectResults > query(const std::string &predicate, std::chrono::milliseconds timeout=DEFAULT_QUERY_RESPONSE_TIMEOUT)=0
Executes the query on the server based on the predicate.
virtual void registerKeys(const std::vector< std::shared_ptr< CacheableKey >> &keys, bool isDurable=false, bool getInitialValues=false, bool receiveValues=true)=0
Registers an array of keys for getting updates from the server.
void localCreate(const KEYTYPE &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:590
virtual void unregisterKeys(const std::vector< std::shared_ptr< CacheableKey >> &keys)=0
Unregisters an array of keys to stop getting updates for them.
void create(const KEYTYPE &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing both key and value to be a const char*.
Definition: Region.hpp:530
Caches are obtained from the create method on the CacheFactory#create class.
Definition: Cache.hpp:67
virtual void localPut(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Places a new value into an entry in this region with the specified key in the local cache only,...
virtual bool existsValue(const std::string &predicate, std::chrono::milliseconds timeout=DEFAULT_QUERY_RESPONSE_TIMEOUT)=0
Executes the query on the server based on the predicate and returns whether any result exists.
bool remove(const KEYTYPE &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing both key and value to be a const char*.
Definition: Region.hpp:813
void create(const std::shared_ptr< CacheableKey > &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing value to be a const char*.
Definition: Region.hpp:545
bool localRemove(const std::shared_ptr< CacheableKey > &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing value to be a const char*.
Definition: Region.hpp:951
virtual std::shared_ptr< Serializable > selectValue(const std::string &predicate, std::chrono::milliseconds timeout=DEFAULT_QUERY_RESPONSE_TIMEOUT)=0
Executes the query on the server based on the predicate and returns a single result value.
std::shared_ptr< RegionEntry > getEntry(const KEYTYPE &key)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:273
virtual bool containsKey(const std::shared_ptr< CacheableKey > &keyPtr) const =0
Only the client's cache is searched for the key.
void localPut(const std::shared_ptr< CacheableKey > &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing value to be a const char*.
Definition: Region.hpp:471
virtual HashMapOfCacheable getAll(const std::vector< std::shared_ptr< CacheableKey >> &keys, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Gets values for an array of keys from the local cache or server.
bool removeEx(const KEYTYPE &key, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:896
virtual std::vector< std::shared_ptr< CacheableKey > > getInterestList() const =0
Returns the list of keys on which this client is interested and will be notified of changes.
virtual uint32_t size()=0
Get the size of region.
virtual void registerRegex(const std::string ®ex, bool isDurable=false, bool getInitialValues=false, bool receiveValues=true)=0
Registers a regular expression to match with keys to get updates from the server.
void put(const std::shared_ptr< CacheableKey > &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing value to be a const char*.
Definition: Region.hpp:396
virtual RegionService & getRegionService() const =0
Returns the cache associated with this region.
virtual void localInvalidate(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Invalidates the entry with the specified key in the local cache only, and provides a user-defined arg...
void localPut(const KEYTYPE &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:463
virtual std::shared_ptr< Cacheable > get(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Returns the value associated with the specified key, passing the callback argument to any cache loade...
bool containsValueForKey(const KEYTYPE &key) const
Convenience method allowing key to be a const char* This operations checks for the value in the local...
Definition: Region.hpp:1058
virtual bool containsValueForKey(const std::shared_ptr< CacheableKey > &keyPtr) const =0
This operations checks for the value in the local cache .
void create(const KEYTYPE &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:537
void destroy(const KEYTYPE &key, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:718
virtual void localClear(const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Removes all entries from this region and provides a user-defined parameter object to any CacheWriter ...
Contains generic template definitions for Cacheable types and instantiations for built-in types.
A RegionService provides access to existing regions that exist in a Geode cache.
Definition: RegionService.hpp:62
bool remove(const std::shared_ptr< CacheableKey > &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing value to be a const char*.
Definition: Region.hpp:828
bool localRemoveEx(const KEYTYPE &key, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:989
virtual std::shared_ptr< Region > getSubregion(const std::string &path)=0
Returns the subregion identified by the path, nullptr if no such subregion.
virtual std::shared_ptr< RegionEntry > getEntry(const std::shared_ptr< CacheableKey > &key)=0
Return the meta-object RegionEntry for key.
virtual bool containsKeyOnServer(const std::shared_ptr< CacheableKey > &keyPtr) const =0
The cache of the server, to which it is connected with, is searched for the key to see if the key is ...
static std::shared_ptr< CacheableKey > create(_T value)
Factory method that creates the key type that matches the type of value.
static std::shared_ptr< Serializable > create(_T value)
Factory method that creates the Serializable object that matches the type of value.
Defines attributes for configuring a region.
Definition: RegionAttributes.hpp:77
virtual void unregisterAllKeys()=0
Registers to get updates for all keys from the server.
bool remove(const KEYTYPE &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:820
void put(const KEYTYPE &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing both key and value to be a const char*.
Definition: Region.hpp:382
virtual std::vector< std::shared_ptr< CacheableKey > > keys()=0
Return all the keys in the local process for this region.
virtual void localCreate(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Creates a new entry in this region with the specified key and value in the local cache only,...
virtual const RegionAttributes & getAttributes() const =0
Return the RegionAttributes for this region.
virtual void registerAllKeys(bool isDurable=false, bool getInitialValues=false, bool receiveValues=true)=0
Registers to get updates for all keys from the server.
virtual bool localRemove(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Removes the entry with the specified key and value in the local cache only, and provides a user-defin...
virtual bool remove(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Removes the entry with the specified key, value and provides a user-defined parameter object to any C...
virtual std::shared_ptr< Region > getParentRegion() const =0
Returns the parent region, or nullptr if a root region.
virtual void destroyRegion(const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Destroys the whole region and provides a user-defined parameter object to any CacheWriter invoked in ...
virtual void create(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Creates a new entry in this region with the specified key and value, providing a user-defined paramet...
bool remove(const KEYTYPE &key)
Convenience method allowing both key and value to be a const char*.
Definition: Region.hpp:840
virtual void invalidateRegion(const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Invalidates this region.
void put(const KEYTYPE &key, const std::shared_ptr< Cacheable > &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:389
void localInvalidate(const KEYTYPE &key, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:663
bool containsKey(const KEYTYPE &key) const
Convenience method allowing key to be a const char* This operations checks for the key in the local c...
Definition: Region.hpp:1100
virtual void clear(const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Removes all entries from this region and provides a user-defined parameter object to any CacheWriter ...
virtual std::vector< std::shared_ptr< CacheableString > > getInterestListRegex() const =0
Returns the list of regular expresssions on which this client is interested and will be notified of c...
This class manages subregions and cached data.
Definition: Region.hpp:95
virtual std::vector< std::shared_ptr< Cacheable > > values()=0
Return all values in the local process for this region.
virtual const std::string & getFullPath() const =0
return the full path of the region as can be used to lookup the region from Cache::getRegion.
virtual void localInvalidateRegion(const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Invalidates this region.
virtual std::vector< std::shared_ptr< CacheableKey > > serverKeys()=0
Return the set of keys defined in the server process associated to this client and region.
virtual void invalidate(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Invalidates the entry with the specified key, and provides a user-defined argument to the CacheListen...
virtual bool removeEx(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Removes the entry with the specified key and provides a user-defined parameter object to any CacheWri...
virtual void localDestroy(const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Serializable > &aCallbackArgument=nullptr)=0
Destroys the entry with the specified key in the local cache only, and provides a user-defined parame...
virtual std::vector< std::shared_ptr< Region > > subregions(const bool recursive)=0
Populates the passed in std::vector<std::shared_ptr<Region>> with subregions of the current region.
std::shared_ptr< Cacheable > get(const KEYTYPE &key, const std::shared_ptr< Serializable > &callbackArg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:324
void invalidate(const KEYTYPE &key, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing key to be a const char*.
Definition: Region.hpp:632
void localPut(const KEYTYPE &key, const VALUETYPE &value, const std::shared_ptr< Serializable > &arg=nullptr)
Convenience method allowing both key and value to be a const char*.
Definition: Region.hpp:456
Apache Geode C++ Cache API Documentation