VMware Tanzu GemFire Native C++ Reference 10.3.0
|
Defines attributes for configuring a region. More...
#include <RegionAttributes.hpp>
Inherits internal::DataSerializableInternal.
Public Member Functions | |
std::shared_ptr< CacheListener > | getCacheListener () const |
Gets the cache listener for the region. More... | |
const std::string & | getCacheListenerFactory () const |
This method returns the symbol name of the factory function from which the loader will be created on a cache server. More... | |
const std::string & | getCacheListenerLibrary () const |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
std::shared_ptr< CacheLoader > | getCacheLoader () const |
public static methods More... | |
const std::string & | getCacheLoaderFactory () const |
This method returns the symbol name of the factory function from which the loader will be created on a cache server. More... | |
const std::string & | getCacheLoaderLibrary () const |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
std::shared_ptr< CacheWriter > | getCacheWriter () const |
Gets the cache writer for the region. More... | |
const std::string & | getCacheWriterFactory () const |
This method returns the symbol name of the factory function from which the loader will be created on a cache server. More... | |
const std::string & | getCacheWriterLibrary () const |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
bool | getCachingEnabled () const |
If true, this region will store data in the current process. More... | |
bool | getClientNotificationEnabled () const |
This method returns the setting of client notification. More... | |
bool | getConcurrencyChecksEnabled () const |
Returns true if concurrent update checks are turned on for this region. More... | |
uint8_t | getConcurrencyLevel () const |
Returns the concurrencyLevel of the entry's local cache. More... | |
DiskPolicyType | getDiskPolicy () const |
Returns the disk policy type of the region. More... | |
const std::string & | getEndpoints () const |
This method returns the list of servername:portno separated by comma. More... | |
std::chrono::seconds | getEntryIdleTimeout () const |
Gets the idleTimeout expiration attributes for entries in this region. More... | |
std::chrono::seconds | getEntryTimeToLive () const |
Gets the timeToLive expiration attributes for entries in this region. More... | |
int | getInitialCapacity () const |
Returns the initial capacity of the entry's local cache. More... | |
float | getLoadFactor () const |
Returns the load factor of the entry's local cache. More... | |
uint32_t | getLruEntriesLimit () const |
Returns the maximum number of entries this cache will hold before using LRU eviction. More... | |
ExpirationAction | getLruEvictionAction () const |
Returns the ExpirationAction used for LRU Eviction, default is LOCAL_DESTROY. More... | |
std::shared_ptr< PartitionResolver > | getPartitionResolver () const |
Gets the partition resolver for the partition region. More... | |
const std::string & | getPartitionResolverFactory () const |
This method returns the symbol name of the factory function from which the loader will be created on a cache server. More... | |
const std::string & | getPartitionResolverLibrary () const |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
const std::string & | getPersistenceFactory () const |
This method returns the symbol name of the factory function from which the persistence will be created on a cache server. More... | |
const std::string & | getPersistenceLibrary () const |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
std::shared_ptr< PersistenceManager > | getPersistenceManager () const |
Gets the persistence for the region. More... | |
std::shared_ptr< Properties > | getPersistenceProperties () const |
This method returns the properties pointer which is set for persistence. More... | |
const std::string & | getPoolName () const |
Returns the name of the pool attached to the region. More... | |
std::chrono::seconds | getRegionIdleTimeout () const |
Gets the idleTimeout expiration attributes for the region as a whole. More... | |
std::chrono::seconds | getRegionTimeToLive () const |
Gets the timeToLive expiration attributes for the region as a whole. More... | |
bool | operator!= (const RegionAttributes &other) const |
Return true if any of the attributes are not equal to those of other. More... | |
bool | operator== (const RegionAttributes &other) const |
Return true if all the attributes are equal to those of other. More... | |
void | validateSerializableAttributes () |
throws IllegalStateException if the attributes are not suited for serialization such as those that have a cache callback (listener, loader, or writer) set directly instead of through the string value setters. More... | |
Static Public Member Functions | |
static std::shared_ptr< Serializable > | createDeserializable () |
Return an empty instance for deserialization. More... | |
Defines attributes for configuring a region.
These are CacheListener
, CacheLoader
, CacheWriter
, scope expiration attributes for the region itself; expiration attributes for the region entries; and whether statistics are enabled for the region and its entries.
To create an instance of this interface, use RegionAttributesFactory::create
.
For compatibility rules and default values, see RegionAttributesFactory
.
Note that the RegionAttributes
are not distributed with the region.
|
static |
Return an empty instance for deserialization.
std::shared_ptr< CacheListener > apache::geode::client::RegionAttributes::getCacheListener | ( | ) | const |
Gets the cache listener for the region.
CacheListener
, nullptr if there is no CacheListener defined for this region. const std::string & apache::geode::client::RegionAttributes::getCacheListenerFactory | ( | ) | const |
This method returns the symbol name of the factory function from which the loader will be created on a cache server.
const std::string & apache::geode::client::RegionAttributes::getCacheListenerLibrary | ( | ) | const |
This method returns the path of the library from which the factory function will be invoked on a cache server.
std::shared_ptr< CacheLoader > apache::geode::client::RegionAttributes::getCacheLoader | ( | ) | const |
public static methods
Gets the cache loader for the region.
CacheLoader
, nullptr if there is no CacheLoader for this region. const std::string & apache::geode::client::RegionAttributes::getCacheLoaderFactory | ( | ) | const |
This method returns the symbol name of the factory function from which the loader will be created on a cache server.
const std::string & apache::geode::client::RegionAttributes::getCacheLoaderLibrary | ( | ) | const |
This method returns the path of the library from which the factory function will be invoked on a cache server.
std::shared_ptr< CacheWriter > apache::geode::client::RegionAttributes::getCacheWriter | ( | ) | const |
Gets the cache writer for the region.
CacheWriter
, nullptr if there is no CacheWriter for this region const std::string & apache::geode::client::RegionAttributes::getCacheWriterFactory | ( | ) | const |
This method returns the symbol name of the factory function from which the loader will be created on a cache server.
const std::string & apache::geode::client::RegionAttributes::getCacheWriterLibrary | ( | ) | const |
This method returns the path of the library from which the factory function will be invoked on a cache server.
|
inline |
If true, this region will store data in the current process.
bool apache::geode::client::RegionAttributes::getClientNotificationEnabled | ( | ) | const |
This method returns the setting of client notification.
|
inline |
Returns true if concurrent update checks are turned on for this region.
uint8_t apache::geode::client::RegionAttributes::getConcurrencyLevel | ( | ) | const |
Returns the concurrencyLevel of the entry's local cache.
DiskPolicyType apache::geode::client::RegionAttributes::getDiskPolicy | ( | ) | const |
Returns the disk policy type of the region.
DiskPolicyType
, default is DiskPolicyType::NONE. const std::string & apache::geode::client::RegionAttributes::getEndpoints | ( | ) | const |
This method returns the list of servername:portno separated by comma.
std::chrono::seconds apache::geode::client::RegionAttributes::getEntryIdleTimeout | ( | ) | const |
Gets the idleTimeout
expiration attributes for entries in this region.
std::chrono::seconds apache::geode::client::RegionAttributes::getEntryTimeToLive | ( | ) | const |
Gets the timeToLive
expiration attributes for entries in this region.
int apache::geode::client::RegionAttributes::getInitialCapacity | ( | ) | const |
Returns the initial capacity of the entry's local cache.
float apache::geode::client::RegionAttributes::getLoadFactor | ( | ) | const |
Returns the load factor of the entry's local cache.
uint32_t apache::geode::client::RegionAttributes::getLruEntriesLimit | ( | ) | const |
Returns the maximum number of entries this cache will hold before using LRU eviction.
A return value of zero, 0, indicates no limit.
ExpirationAction apache::geode::client::RegionAttributes::getLruEvictionAction | ( | ) | const |
Returns the ExpirationAction used for LRU Eviction, default is LOCAL_DESTROY.
std::shared_ptr< PartitionResolver > apache::geode::client::RegionAttributes::getPartitionResolver | ( | ) | const |
Gets the partition resolver for the partition region.
PartitionResolver
, nullptr if there is no PartitionResolver defined for this region. const std::string & apache::geode::client::RegionAttributes::getPartitionResolverFactory | ( | ) | const |
This method returns the symbol name of the factory function from which the loader will be created on a cache server.
const std::string & apache::geode::client::RegionAttributes::getPartitionResolverLibrary | ( | ) | const |
This method returns the path of the library from which the factory function will be invoked on a cache server.
const std::string & apache::geode::client::RegionAttributes::getPersistenceFactory | ( | ) | const |
This method returns the symbol name of the factory function from which the persistence will be created on a cache server.
const std::string & apache::geode::client::RegionAttributes::getPersistenceLibrary | ( | ) | const |
This method returns the path of the library from which the factory function will be invoked on a cache server.
std::shared_ptr< PersistenceManager > apache::geode::client::RegionAttributes::getPersistenceManager | ( | ) | const |
Gets the persistence for the region.
PersistenceManager
, nullptr if there is no PersistenceManager for this region. std::shared_ptr< Properties > apache::geode::client::RegionAttributes::getPersistenceProperties | ( | ) | const |
This method returns the properties pointer which is set for persistence.
|
inline |
Returns the name of the pool attached to the region.
std::chrono::seconds apache::geode::client::RegionAttributes::getRegionIdleTimeout | ( | ) | const |
Gets the idleTimeout expiration attributes for the region as a whole.
std::chrono::seconds apache::geode::client::RegionAttributes::getRegionTimeToLive | ( | ) | const |
Gets the timeToLive
expiration attributes for the region as a whole.
bool apache::geode::client::RegionAttributes::operator!= | ( | const RegionAttributes & | other | ) | const |
Return true if any of the attributes are not equal to those of other.
bool apache::geode::client::RegionAttributes::operator== | ( | const RegionAttributes & | other | ) | const |
Return true if all the attributes are equal to those of other.
void apache::geode::client::RegionAttributes::validateSerializableAttributes | ( | ) |
throws IllegalStateException if the attributes are not suited for serialization such as those that have a cache callback (listener, loader, or writer) set directly instead of through the string value setters.