Supports modification of certain region attributes after the region has been created.
More...
Supports modification of certain region attributes after the region has been created.
It is required that the attributes be completely initialized using an RegionAttributesFactory before creating the region. AttributesMutator can be applied to adjusting and tuning a subset of attributes that are modifiable at runtime.
The setter methods all return the previous value of the attribute.
- See also
- Region::getAttributesMutator
-
RegionAttributes
-
RegionAttributesFactory
◆ AttributesMutator()
apache::geode::client::AttributesMutator::AttributesMutator |
( |
const std::shared_ptr< Region > & |
region | ) |
|
|
explicit |
◆ setCacheListener() [1/2]
void apache::geode::client::AttributesMutator::setCacheListener |
( |
const std::shared_ptr< CacheListener > & |
aListener | ) |
|
Sets cache listener for region.
The previous cache listener will be replaced with aListener
.
- Parameters
-
◆ setCacheListener() [2/2]
void apache::geode::client::AttributesMutator::setCacheListener |
( |
const std::string & |
libpath, |
|
|
const std::string & |
factoryFuncName |
|
) |
| |
Sets cache listener for region.
The previous cache listener will be replaced with a listener created using the factory function provided in the given library.
- Parameters
-
libpath | path of the library containing cache listener factory function. |
factoryFuncName | factory function for creating cache listener. |
◆ setCacheLoader() [1/2]
void apache::geode::client::AttributesMutator::setCacheLoader |
( |
const std::shared_ptr< CacheLoader > & |
aLoader | ) |
|
Sets cache loader for region.
The previous cache loader will be replaced with aLoader
.
- Parameters
-
◆ setCacheLoader() [2/2]
void apache::geode::client::AttributesMutator::setCacheLoader |
( |
const std::string & |
libpath, |
|
|
const std::string & |
factoryFuncName |
|
) |
| |
Sets cache loader for region.
The previous cache loader will be replaced with a loader created using the factory function provided in the given library.
- Parameters
-
libpath | path of the library containing cache loader factory function. |
factoryFuncName | factory function for creating cache loader. |
◆ setCacheWriter() [1/2]
void apache::geode::client::AttributesMutator::setCacheWriter |
( |
const std::shared_ptr< CacheWriter > & |
aWriter | ) |
|
Sets cache writer for region.
The previous cache writer will be replaced with aWriter
.
- Parameters
-
◆ setCacheWriter() [2/2]
void apache::geode::client::AttributesMutator::setCacheWriter |
( |
const std::string & |
libpath, |
|
|
const std::string & |
factoryFuncName |
|
) |
| |
Sets cache writer for region.
The previous cache writer will be replaced with a writer created using the factory function provided in the given library.
- Parameters
-
libpath | path of the library containing cache writer factory function. |
factoryFuncName | factory function for creating cache writer. |
◆ setEntryIdleTimeout()
std::chrono::seconds apache::geode::client::AttributesMutator::setEntryIdleTimeout |
( |
std::chrono::seconds |
idleTimeout | ) |
|
Sets the idleTimeout duration for region entries.
- Parameters
-
idleTimeout | the idleTimeout for entries in this region. |
- Returns
- the previous value.
- Exceptions
-
IllegalStateException | if the new idleTimeout changes entry expiration from disabled to enabled or enabled to disabled. |
◆ setEntryIdleTimeoutAction()
Set the idleTimeout Action for region entries.
- Parameters
-
- Returns
- the previous value.
◆ setEntryTimeToLive()
std::chrono::seconds apache::geode::client::AttributesMutator::setEntryTimeToLive |
( |
std::chrono::seconds |
timeToLive | ) |
|
Sets the timeToLive duration for region entries.
- Parameters
-
timeToLive | the timeToLive for entries in this region. |
- Returns
- the previous value.
- Exceptions
-
IllegalStateException | if the new timeToLive changes entry expiration from disabled to enabled or enabled to disabled. |
◆ setEntryTimeToLiveAction()
Set the timeToLive Action for region entries.
- Parameters
-
- Returns
- the previous value.
◆ setLruEntriesLimit()
uint32_t apache::geode::client::AttributesMutator::setLruEntriesLimit |
( |
uint32_t |
entriesLimit | ) |
|
Sets the Maximum entry count in the region before LRU eviction.
- Parameters
-
entriesLimit | the number of entries to allow. |
- Returns
- the previous value.
- Exceptions
-
IllegalStateException | if the new entriesLimit changes LRU from disabled to enabled or enabled to disabled. |
◆ setRegionIdleTimeout()
std::chrono::seconds apache::geode::client::AttributesMutator::setRegionIdleTimeout |
( |
std::chrono::seconds |
idleTimeout | ) |
|
Sets the idleTimeout duration for the region itself.
- Parameters
-
- Returns
- the previous value.
- Exceptions
-
IllegalStateException | if the new idleTimeout changes region expiration from disabled to enabled or enabled to disabled. |
◆ setRegionIdleTimeoutAction()
Set the idleTimeout Action for the region itself.
- Parameters
-
- Returns
- the previous value.
◆ setRegionTimeToLive()
std::chrono::seconds apache::geode::client::AttributesMutator::setRegionTimeToLive |
( |
std::chrono::seconds |
timeToLive | ) |
|
Sets the timeToLive duration for the region itself.
- Parameters
-
- Returns
- the previous value.
- Exceptions
-
IllegalStateException | if the new timeToLive changes region expiration from disabled to enabled or enabled to disabled. |
◆ setRegionTimeToLiveAction()
Set the timeToLive Action for the region itself.
- Parameters
-
- Returns
- the previous value.