Apache Geode Native .NET Reference 1.15.0
|
Supports modification of certain region attributes after the region has been created. More...
#include <AttributesMutator.hpp>
Public Member Functions | |
void | SetCacheListener (ICacheListener< TKey, TValue >^ cacheListener) |
Sets the CacheListener for the region. More... | |
void | SetCacheListener (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the listener of the region. More... | |
void | SetCacheLoader (ICacheLoader< TKey, TValue >^ cacheLoader) |
Sets the CacheLoader for the region. More... | |
void | SetCacheLoader (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the loader of the region. More... | |
void | SetCacheWriter (ICacheWriter< TKey, TValue >^ cacheWriter) |
Sets the CacheListener for the region. More... | |
void | SetCacheWriter (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the writer of the region. More... | |
TimeSpan | SetEntryIdleTimeout (TimeSpan idleTimeout) |
Sets the idleTimeout duration for region entries. More... | |
ExpirationAction | SetEntryIdleTimeoutAction (ExpirationAction action) |
Sets the idleTimeout action for region entries. More... | |
TimeSpan | SetEntryTimeToLive (TimeSpan timeToLive) |
Sets the timeToLive duration for region entries. More... | |
ExpirationAction | SetEntryTimeToLiveAction (ExpirationAction action) |
Set the timeToLive action for region entries. More... | |
System::UInt32 | SetLruEntriesLimit (System::UInt32 entriesLimit) |
Sets the maximum entry count in the region before LRU eviction. More... | |
TimeSpan | SetRegionIdleTimeout (TimeSpan idleTimeout) |
Sets the idleTimeout duration for the region itself. More... | |
ExpirationAction | SetRegionIdleTimeoutAction (ExpirationAction action) |
Sets the idleTimeout action for the region itself. More... | |
TimeSpan | SetRegionTimeToLive (TimeSpan timeToLive) |
Sets the timeToLive duration for the region itself. More... | |
ExpirationAction | SetRegionTimeToLiveAction (ExpirationAction action) |
Sets the timeToLive action for the region itself. 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.
void Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetCacheListener | ( | ICacheListener< TKey, TValue >^ | 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 Apache::Geode::Client::AttributesMutator< TKey, TValue >::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 Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetCacheLoader | ( | ICacheLoader< TKey, TValue >^ | 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 Apache::Geode::Client::AttributesMutator< TKey, TValue >::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 Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetCacheWriter | ( | ICacheWriter< TKey, TValue >^ | 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 |
void Apache::Geode::Client::AttributesMutator< TKey, TValue >::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. |
TimeSpan Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetEntryIdleTimeout | ( | TimeSpan | 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 Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetEntryIdleTimeoutAction | ( | ExpirationAction | action | ) |
Sets the idleTimeout action for region entries.
action | the idleTimeout action for entries in this region |
TimeSpan Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetEntryTimeToLive | ( | TimeSpan | 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 Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetEntryTimeToLiveAction | ( | ExpirationAction | action | ) |
Set the timeToLive action for region entries.
action | the timeToLive action for entries in this region |
System::UInt32 Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetLruEntriesLimit | ( | System::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. |
TimeSpan Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetRegionIdleTimeout | ( | TimeSpan | 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 Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetRegionIdleTimeoutAction | ( | ExpirationAction | action | ) |
Sets the idleTimeout action for the region itself.
action | the idleTimeout action for this region |
TimeSpan Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetRegionTimeToLive | ( | TimeSpan | 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 Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetRegionTimeToLiveAction | ( | ExpirationAction | action | ) |
Sets the timeToLive action for the region itself.
action | the timeToLiv eaction for this region |