It is required that the attributes be completely initialized using an AttributesFactory 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.
Public Member Functions | |
| void | SetCacheListener (String^ libPath, String^ factoryFunctionName) |
| void | SetCacheListener (ICacheListener^ cacheListener) |
| void | SetCacheLoader (String^ libPath, String^ factoryFunctionName) |
| void | SetCacheLoader (ICacheLoader^ cacheLoader) |
| void | SetCacheWriter (String^ libPath, String^ factoryFunctionName) |
| void | SetCacheWriter (ICacheWriter^ cacheWriter) |
| Int32 | SetEntryIdleTimeout (Int32 idleTimeout) |
| ExpirationAction | SetEntryIdleTimeoutAction (ExpirationAction action) |
| Int32 | SetEntryTimeToLive (Int32 timeToLive) |
| ExpirationAction | SetEntryTimeToLiveAction (ExpirationAction action) |
| UInt32 | SetLruEntriesLimit (UInt32 entriesLimit) |
| Int32 | SetRegionIdleTimeout (Int32 idleTimeout) |
| ExpirationAction | SetRegionIdleTimeoutAction (ExpirationAction action) |
| Int32 | SetRegionTimeToLive (Int32 timeToLive) |
| ExpirationAction | SetRegionTimeToLiveAction (ExpirationAction action) |
| void GemStone::GemFire::Cache::AttributesMutator::SetCacheListener | ( | String^ | libPath, | |
| String^ | factoryFunctionName | |||
| ) |
Sets the library path for the library that will be invoked for the listener of the region.
The previous cache listener will be replaced with a listener created using the factory function provided in the given library.
| libPath | library pathname containing the factory function. | |
| factoryFunctionName | Name of factory function that creates a CacheListener for a native library, or the name of the method in the form {Namespace}.{Class Name}.{Method Name} that creates an ICacheListener for a managed library. |
| void GemStone::GemFire::Cache::AttributesMutator::SetCacheListener | ( | ICacheListener^ | cacheListener | ) |
Sets the CacheListener for the region.
The previous cache listener (if any) will be replaced with the given cacheListener.
| cacheListener | user-defined cache listener, or null for no cache listener |
| void GemStone::GemFire::Cache::AttributesMutator::SetCacheLoader | ( | String^ | libPath, | |
| String^ | factoryFunctionName | |||
| ) |
Sets the library path for the library that will be invoked for the loader of the region.
The previous cache loader will be replaced with a loader created using the factory function provided in the given library.
| libPath | library pathname containing the factory function. | |
| factoryFunctionName | Name of factory function that creates a CacheLoader for a native library, or the name of the method in the form {Namespace}.{Class Name}.{Method Name} that creates an ICacheLoader for a managed library. |
| void GemStone::GemFire::Cache::AttributesMutator::SetCacheLoader | ( | ICacheLoader^ | cacheLoader | ) |
Sets the CacheLoader for the region.
The previous cache loader (if any) will be replaced with the given cacheLoader.
| cacheLoader | user-defined cache loader, or null for no cache loader |
| void GemStone::GemFire::Cache::AttributesMutator::SetCacheWriter | ( | String^ | libPath, | |
| String^ | factoryFunctionName | |||
| ) |
Sets the library path for the library that will be invoked for the writer of the region.
The previous cache writer will be replaced with a writer created using the factory function provided in the given library.
| libPath | library pathname containing the factory function. | |
| factoryFunctionName | Name of factory function that creates a CacheWriter for a native library, or the name of the method in the form {Namespace}.{Class Name}.{Method Name} that creates an ICacheWriter for a managed library. |
| void GemStone::GemFire::Cache::AttributesMutator::SetCacheWriter | ( | ICacheWriter^ | cacheWriter | ) |
Sets the CacheListener for the region.
The previous cache writer (if any) will be replaced with the given cacheWriter.
| cacheWriter | user-defined cache writer, or null for no cache writer |
| Int32 GemStone::GemFire::Cache::AttributesMutator::SetEntryIdleTimeout | ( | Int32 | idleTimeout | ) |
Sets the idleTimeout duration for region entries.
| idleTimeout | the idleTimeout in seconds for entries in this region, or 0 for no idle timeout |
| IllegalStateException | if the new idleTimeout changes entry expiration from disabled to enabled or enabled to disabled. |
| ExpirationAction GemStone::GemFire::Cache::AttributesMutator::SetEntryIdleTimeoutAction | ( | ExpirationAction | action | ) |
Sets the idleTimeout action for region entries.
| action | the idleTimeout action for entries in this region |
| Int32 GemStone::GemFire::Cache::AttributesMutator::SetEntryTimeToLive | ( | Int32 | timeToLive | ) |
Sets the timeToLive duration for region entries.
| timeToLive | the timeToLive in seconds for entries in this region, or 0 to disable time-to-live |
| IllegalStateException | if the new timeToLive changes entry expiration from disabled to enabled or enabled to disabled |
| ExpirationAction GemStone::GemFire::Cache::AttributesMutator::SetEntryTimeToLiveAction | ( | ExpirationAction | action | ) |
Set the timeToLive action for region entries.
| action | the timeToLive action for entries in this region |
| UInt32 GemStone::GemFire::Cache::AttributesMutator::SetLruEntriesLimit | ( | UInt32 | entriesLimit | ) |
Sets the maximum entry count in the region before LRU eviction.
| entriesLimit | the number of entries to allow, or 0 to disable LRU |
| IllegalStateException | if the new entriesLimit changes LRU from disabled to enabled or enabled to disabled. |
| Int32 GemStone::GemFire::Cache::AttributesMutator::SetRegionIdleTimeout | ( | Int32 | idleTimeout | ) |
Sets the idleTimeout duration for the region itself.
| idleTimeout | the idleTimeout for this region, in seconds, or 0 to disable idle timeout |
| IllegalStateException | if the new idleTimeout changes region expiration from disabled to enabled or enabled to disabled. |
| ExpirationAction GemStone::GemFire::Cache::AttributesMutator::SetRegionIdleTimeoutAction | ( | ExpirationAction | action | ) |
Sets the idleTimeout action for the region itself.
| action | the idleTimeout action for this region |
| Int32 GemStone::GemFire::Cache::AttributesMutator::SetRegionTimeToLive | ( | Int32 | timeToLive | ) |
Sets the timeToLive duration for the region itself.
| timeToLive | the timeToLive for this region, in seconds, or 0 to disable time-to-live |
| IllegalStateException | if the new timeToLive changes region expiration from disabled to enabled or enabled to disabled. |
| ExpirationAction GemStone::GemFire::Cache::AttributesMutator::SetRegionTimeToLiveAction | ( | ExpirationAction | action | ) |
Sets the timeToLive action for the region itself.
| action | the timeToLiv eaction for this region |