VMware Tanzu GemFire Native C++ Reference
10.1.5
|
Provides for the configuration and creation of instances of Region. More...
Public Member Functions | |
std::shared_ptr< Region > | create (std::string name) |
Create a Region of the given name . More... | |
RegionFactory & | setCacheListener (const std::shared_ptr< CacheListener > &aListener) |
Sets the CacheListener for the next RegionAttributes created. More... | |
RegionFactory & | setCacheListener (const std::string &libpath, const std::string &factoryFuncName) |
Sets the library path for the library that will be invoked for the listener of the region. More... | |
RegionFactory & | setCacheLoader (const std::shared_ptr< CacheLoader > &cacheLoader) |
Sets the cache loader for the next RegionAttributes created. More... | |
RegionFactory & | setCacheLoader (const std::string &libpath, const std::string &factoryFuncName) |
Sets the library path for the library that will be invoked for the loader of the region. More... | |
RegionFactory & | setCacheWriter (const std::shared_ptr< CacheWriter > &cacheWriter) |
Sets the cache writer for the next RegionAttributes created. More... | |
RegionFactory & | setCacheWriter (const std::string &libpath, const std::string &factoryFuncName) |
Sets the library path for the library that will be invoked for the writer of the region. More... | |
RegionFactory & | setCachingEnabled (bool cachingEnabled) |
Set caching enabled flag for this region. More... | |
RegionFactory & | setConcurrencyChecksEnabled (bool enable) |
Enables or disables concurrent modification checks. More... | |
RegionFactory & | setConcurrencyLevel (uint8_t concurrencyLevel) |
Sets the concurrency level tof the next RegionAttributes created. More... | |
RegionFactory & | setDiskPolicy (const DiskPolicyType diskPolicy) |
Sets the Disk policy type for the next RegionAttributes created. More... | |
RegionFactory & | setEntryIdleTimeout (ExpirationAction action, std::chrono::seconds idleTimeout) |
Sets the idleTimeout expiration attributes for region entries for the next RegionAttributes created. More... | |
RegionFactory & | setEntryTimeToLive (ExpirationAction action, std::chrono::seconds timeToLive) |
Sets the timeToLive expiration attributes for region entries for the next RegionAttributes created. More... | |
RegionFactory & | setInitialCapacity (int initialCapacity) |
Sets the entry initial capacity for the next RegionAttributes created. More... | |
RegionFactory & | setLoadFactor (float loadFactor) |
Sets the entry load factor for the next RegionAttributes created. More... | |
RegionFactory & | setLruEntriesLimit (const uint32_t entriesLimit) |
Sets a limit on the number of entries that will be held in the cache. More... | |
RegionFactory & | setPartitionResolver (const std::shared_ptr< PartitionResolver > &aResolver) |
Sets the PartitionResolver for the next RegionAttributes created. More... | |
RegionFactory & | setPartitionResolver (const std::string &libpath, const std::string &factoryFuncName) |
Sets the library path for the library that will be invoked for the partition resolver of the region. More... | |
RegionFactory & | setPersistenceManager (const std::shared_ptr< PersistenceManager > &persistenceManager, const std::shared_ptr< Properties > &config=nullptr) |
Sets the PersistenceManager for the next RegionAttributes created. More... | |
RegionFactory & | setPersistenceManager (const std::string &libpath, const std::string &factoryFuncName, const std::shared_ptr< Properties > &config=nullptr) |
Sets the library path for the library that will be invoked for the persistence of the region. More... | |
RegionFactory & | setRegionIdleTimeout (ExpirationAction action, std::chrono::seconds idleTimeout) |
Sets the idleTimeout expiration attributes for the region itself for the next RegionAttributes created. More... | |
RegionFactory & | setRegionTimeToLive (ExpirationAction action, std::chrono::seconds timeToLive) |
Sets the timeToLive expiration attributes for the region itself for the next RegionAttributes created. More... | |
Provides for the configuration and creation of instances of Region.
std::shared_ptr<Region> apache::geode::client::RegionFactory::create | ( | std::string | name | ) |
Create a Region of the given name
.
name | the name of the Region. |
RegionExistsException | if a region is already in this cache |
CacheClosedException | if the cache is closed |
RegionFactory& apache::geode::client::RegionFactory::setCacheListener | ( | const std::shared_ptr< CacheListener > & | aListener | ) |
Sets the CacheListener for the next RegionAttributes
created.
aListener | a user defined CacheListener, nullptr if no listener |
this
RegionFactory& apache::geode::client::RegionFactory::setCacheListener | ( | const std::string & | libpath, |
const std::string & | factoryFuncName | ||
) |
Sets the library path for the library that will be invoked for the listener of the region.
this
RegionFactory& apache::geode::client::RegionFactory::setCacheLoader | ( | const std::shared_ptr< CacheLoader > & | cacheLoader | ) |
Sets the cache loader for the next RegionAttributes
created.
cacheLoader | the cache loader or nullptr if no loader |
this
RegionFactory& apache::geode::client::RegionFactory::setCacheLoader | ( | const std::string & | libpath, |
const std::string & | factoryFuncName | ||
) |
Sets the library path for the library that will be invoked for the loader of the region.
this
RegionFactory& apache::geode::client::RegionFactory::setCacheWriter | ( | const std::shared_ptr< CacheWriter > & | cacheWriter | ) |
Sets the cache writer for the next RegionAttributes
created.
cacheWriter | the cache writer or nullptr if no cache writer |
this
RegionFactory& apache::geode::client::RegionFactory::setCacheWriter | ( | const std::string & | libpath, |
const std::string & | factoryFuncName | ||
) |
Sets the library path for the library that will be invoked for the writer of the region.
this
RegionFactory& apache::geode::client::RegionFactory::setCachingEnabled | ( | bool | cachingEnabled | ) |
Set caching enabled flag for this region.
If set to false, then no data is stored in the local process, but events and distributions will still occur, and the region can still be used to put and remove, etc... The default if not set is 'true', 'false' is illegal for regions of 'local' scope. This also requires that interestLists are turned off for the region.
cachingEnabled | if true, cache data for this region in this process. |
this
RegionFactory& apache::geode::client::RegionFactory::setConcurrencyChecksEnabled | ( | bool | enable | ) |
Enables or disables concurrent modification checks.
concurrencyChecksEnabled | whether to perform concurrency checks on operations |
this
RegionFactory& apache::geode::client::RegionFactory::setConcurrencyLevel | ( | uint8_t | concurrencyLevel | ) |
Sets the concurrency level tof the next RegionAttributes
created.
This value is used in initializing the map that holds the entries.
concurrencyLevel | the concurrency level of the entry map |
this
IllegalArgumentException | if concurrencyLevel is nonpositive |
RegionFactory& apache::geode::client::RegionFactory::setDiskPolicy | ( | const DiskPolicyType | diskPolicy | ) |
Sets the Disk policy type for the next RegionAttributes
created.
diskPolicy | the type of disk policy to use for the region |
this
IllegalArgumentException | if diskPolicyType is Invalid |
RegionFactory& apache::geode::client::RegionFactory::setEntryIdleTimeout | ( | ExpirationAction | action, |
std::chrono::seconds | idleTimeout | ||
) |
Sets the idleTimeout expiration attributes for region entries for the next RegionAttributes
created.
action | the expiration action for entries in this region. |
idleTimeout | the idleTimeout for entries in this region. |
this
RegionFactory& apache::geode::client::RegionFactory::setEntryTimeToLive | ( | ExpirationAction | action, |
std::chrono::seconds | timeToLive | ||
) |
Sets the timeToLive expiration attributes for region entries for the next RegionAttributes
created.
action | the expiration action for entries in this region. |
timeToLive | the timeToLive for entries in this region. |
this
RegionFactory& apache::geode::client::RegionFactory::setInitialCapacity | ( | int | initialCapacity | ) |
Sets the entry initial capacity for the next RegionAttributes
created.
This value is used in initializing the map that holds the entries.
initialCapacity | the initial capacity of the entry map |
this
IllegalArgumentException | if initialCapacity is negative. |
RegionFactory& apache::geode::client::RegionFactory::setLoadFactor | ( | float | loadFactor | ) |
Sets the entry load factor for the next RegionAttributes
created.
This value is used in initializing the map that holds the entries.
loadFactor | the load factor of the entry map |
this
IllegalArgumentException | if loadFactor is nonpositive |
RegionFactory& apache::geode::client::RegionFactory::setLruEntriesLimit | ( | const uint32_t | entriesLimit | ) |
Sets a limit on the number of entries that will be held in the cache.
If a new entry is added while at the limit, the cache will evict the least recently used entry. Defaults to 0, meaning no LRU actions will used.
entriesLimit | number of enteries to keep in region |
this
RegionFactory& apache::geode::client::RegionFactory::setPartitionResolver | ( | const std::shared_ptr< PartitionResolver > & | aResolver | ) |
Sets the PartitionResolver for the next RegionAttributes
created.
aResolver | a user defined PartitionResolver, nullptr if no resolver |
this
RegionFactory& apache::geode::client::RegionFactory::setPartitionResolver | ( | const std::string & | libpath, |
const std::string & | factoryFuncName | ||
) |
Sets the library path for the library that will be invoked for the partition resolver of the region.
this
RegionFactory& apache::geode::client::RegionFactory::setPersistenceManager | ( | const std::shared_ptr< PersistenceManager > & | persistenceManager, |
const std::shared_ptr< Properties > & | config = nullptr |
||
) |
Sets the PersistenceManager for the next RegionAttributes
created.
persistenceManager | a user defined PersistenceManager, nullptr if no persistenceManager |
this
RegionFactory& apache::geode::client::RegionFactory::setPersistenceManager | ( | const std::string & | libpath, |
const std::string & | factoryFuncName, | ||
const std::shared_ptr< Properties > & | config = nullptr |
||
) |
Sets the library path for the library that will be invoked for the persistence of the region.
If the region is being created from a client on a server, or on a server directly, then this must be used to set the PersistenceManager.
this
RegionFactory& apache::geode::client::RegionFactory::setRegionIdleTimeout | ( | ExpirationAction | action, |
std::chrono::seconds | idleTimeout | ||
) |
Sets the idleTimeout expiration attributes for the region itself for the next RegionAttributes
created.
action | the expiration action for entries in this region. |
idleTimeout | the idleTimeout for the region as a whole. |
this
RegionFactory& apache::geode::client::RegionFactory::setRegionTimeToLive | ( | ExpirationAction | action, |
std::chrono::seconds | timeToLive | ||
) |
Sets the timeToLive expiration attributes for the region itself for the next RegionAttributes
created.
action | the expiration action for entries in this region. |
timeToLive | the timeToLive for the region as a whole. |
this