VMware GemFire Native Client .NET Framework API Reference
|
VMware VMware GemFire Native .NET Reference 10.4.3
|
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. | |
| void | SetCacheListener (String^ libPath, String^ factoryFunctionName) |
| Sets the library path for the library that will be invoked for the listener of the region. | |
| void | SetCacheLoader (ICacheLoader< TKey, TValue >^ cacheLoader) |
| Sets the CacheLoader for the region. | |
| void | SetCacheLoader (String^ libPath, String^ factoryFunctionName) |
| Sets the library path for the library that will be invoked for the loader of the region. | |
| void | SetCacheWriter (ICacheWriter< TKey, TValue >^ cacheWriter) |
| Sets the CacheListener for the region. | |
| void | SetCacheWriter (String^ libPath, String^ factoryFunctionName) |
| Sets the library path for the library that will be invoked for the writer of the region. | |
| TimeSpan | SetEntryIdleTimeout (TimeSpan idleTimeout) |
| Sets the idleTimeout duration for region entries. | |
| ExpirationAction | SetEntryIdleTimeoutAction (ExpirationAction action) |
| Sets the idleTimeout action for region entries. | |
| TimeSpan | SetEntryTimeToLive (TimeSpan timeToLive) |
| Sets the timeToLive duration for region entries. | |
| ExpirationAction | SetEntryTimeToLiveAction (ExpirationAction action) |
| Set the timeToLive action for region entries. | |
| System::UInt32 | SetLruEntriesLimit (System::UInt32 entriesLimit) |
| Sets the maximum entry count in the region before LRU eviction. | |
| TimeSpan | SetRegionIdleTimeout (TimeSpan idleTimeout) |
| Sets the idleTimeout duration for the region itself. | |
| ExpirationAction | SetRegionIdleTimeoutAction (ExpirationAction action) |
| Sets the idleTimeout action for the region itself. | |
| TimeSpan | SetRegionTimeToLive (TimeSpan timeToLive) |
| Sets the timeToLive duration for the region itself. | |
| ExpirationAction | SetRegionTimeToLiveAction (ExpirationAction action) |
| Sets the timeToLive action for the region itself. | |
Detailed Description
class Apache::Geode::Client::AttributesMutator< TKey, TValue >
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.AttributesMutator, RegionAttributes, RegionAttributesFactory
Member Function Documentation
◆ SetCacheListener() [1/2]
| 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.
- Parameters
-
cacheListener user-defined cache listener, or null for no cache listener
◆ SetCacheListener() [2/2]
| 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.
- Parameters
-
libPath library pathname containing the factory function. factoryFunctionName Name of factory function that creates a CacheListenerfor a native library, or the name of the method in the form {Namespace}.{Class Name}.{Method Name} that creates anICacheListenerfor a managed library.
◆ SetCacheLoader() [1/2]
| 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.
- Parameters
-
cacheLoader user-defined cache loader, or null for no cache loader
◆ SetCacheLoader() [2/2]
| 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.
- Parameters
-
libPath library pathname containing the factory function. factoryFunctionName Name of factory function that creates a CacheLoaderfor a native library, or the name of the method in the form {Namespace}.{Class Name}.{Method Name} that creates anICacheLoaderfor a managed library.
◆ SetCacheWriter() [1/2]
| 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.
- Parameters
-
cacheWriter user-defined cache writer, or null for no cache writer
◆ SetCacheWriter() [2/2]
| 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.
- Parameters
-
libPath library pathname containing the factory function. factoryFunctionName Name of factory function that creates a CacheWriterfor a native library, or the name of the method in the form {Namespace}.{Class Name}.{Method Name} that creates anICacheWriterfor a managed library.
◆ SetEntryIdleTimeout()
| TimeSpan Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetEntryIdleTimeout | ( | TimeSpan | idleTimeout | ) |
Sets the idleTimeout duration for region entries.
- Parameters
-
idleTimeout the idleTimeout in seconds for entries in this region, or 0 for no idle timeout
- Returns
- the previous value
- Exceptions
-
IllegalStateException if the new idleTimeout changes entry expiration from disabled to enabled or enabled to disabled.
◆ SetEntryIdleTimeoutAction()
| ExpirationAction Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetEntryIdleTimeoutAction | ( | ExpirationAction | action | ) |
Sets the idleTimeout action for region entries.
- Parameters
-
action the idleTimeout action for entries in this region
- Returns
- the previous action
◆ SetEntryTimeToLive()
| TimeSpan Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetEntryTimeToLive | ( | TimeSpan | timeToLive | ) |
Sets the timeToLive duration for region entries.
- Parameters
-
timeToLive the timeToLive in seconds for entries in this region, or 0 to disable time-to-live
- Returns
- the previous value
- Exceptions
-
IllegalStateException if the new timeToLive changes entry expiration from disabled to enabled or enabled to disabled
◆ SetEntryTimeToLiveAction()
| ExpirationAction Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetEntryTimeToLiveAction | ( | ExpirationAction | action | ) |
Set the timeToLive action for region entries.
- Parameters
-
action the timeToLive action for entries in this region
- Returns
- the previous action
◆ SetLruEntriesLimit()
| System::UInt32 Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetLruEntriesLimit | ( | System::UInt32 | entriesLimit | ) |
Sets the maximum entry count in the region before LRU eviction.
- Parameters
-
entriesLimit the number of entries to allow, or 0 to disable LRU
- Returns
- the previous value
- Exceptions
-
IllegalStateException if the new entriesLimit changes LRU from disabled to enabled or enabled to disabled.
◆ SetRegionIdleTimeout()
| TimeSpan Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetRegionIdleTimeout | ( | TimeSpan | idleTimeout | ) |
Sets the idleTimeout duration for the region itself.
- Parameters
-
idleTimeout the idleTimeout for this region, in seconds, or 0 to disable idle timeout
- Returns
- the previous value
- Exceptions
-
IllegalStateException if the new idleTimeout changes region expiration from disabled to enabled or enabled to disabled.
◆ SetRegionIdleTimeoutAction()
| ExpirationAction Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetRegionIdleTimeoutAction | ( | ExpirationAction | action | ) |
Sets the idleTimeout action for the region itself.
- Parameters
-
action the idleTimeout action for this region
- Returns
- the previous action
◆ SetRegionTimeToLive()
| TimeSpan Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetRegionTimeToLive | ( | TimeSpan | timeToLive | ) |
Sets the timeToLive duration for the region itself.
- Parameters
-
timeToLive the timeToLive for this region, in seconds, or 0 to disable time-to-live
- Returns
- the previous value
- Exceptions
-
IllegalStateException if the new timeToLive changes region expiration from disabled to enabled or enabled to disabled.
◆ SetRegionTimeToLiveAction()
| ExpirationAction Apache::Geode::Client::AttributesMutator< TKey, TValue >::SetRegionTimeToLiveAction | ( | ExpirationAction | action | ) |
Sets the timeToLive action for the region itself.
- Parameters
-
action the timeToLiv eaction for this region
- Returns
- the previous action
Apache Geode C++ Cache .NET API Documentation