VMware VMware GemFire Native .NET Reference 10.4.3
|
Factory class to create instances of RegionAttributes. More...
#include <RegionAttributesFactory.hpp>
Public Member Functions | |
RegionAttributes< TKey, TValue > ^ | Create () |
Creates a RegionAttributes with the current settings. | |
RegionAttributesFactory () | |
Creates a new RegionAttributesFactory ready to create a RegionAttributes with default settings. | |
RegionAttributesFactory (RegionAttributes< TKey, TValue >^ regionAttributes) | |
Creates a new instance of RegionAttributesFactory ready to create a RegionAttributes with the same settings as those in the specified RegionAttributes . | |
RegionAttributesFactory< TKey, TValue > ^ | SetCacheListener (ICacheListener< TKey, TValue >^ cacheListener) |
Sets the CacheListener for the RegionAttributes being created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetCacheListener (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the listener of the region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetCacheLoader (ICacheLoader< TKey, TValue >^ cacheLoader) |
Sets the cache loader for the RegionAttributes being created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetCacheLoader (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the loader of the region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetCacheWriter (ICacheWriter< TKey, TValue >^ cacheWriter) |
Sets the cache writer for the RegionAttributes being created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetCacheWriter (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the writer of the region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetCachingEnabled (bool cachingEnabled) |
Set caching enabled flag for this region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetCloningEnabled (bool cloningEnabled) |
Set cloning enabled flag for this region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetConcurrencyChecksEnabled (bool concurrencyChecksEnabled) |
Sets concurrency checks enabled flag for this region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetConcurrencyLevel (System::Int32 concurrencyLevel) |
Sets the concurrency level of the next RegionAttributes created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetDiskPolicy (DiskPolicyType diskPolicy) |
Sets the disk policy type for the next RegionAttributes created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetEntryIdleTimeout (ExpirationAction action, TimeSpan idleTimeout) |
Sets the idleTimeout expiration attributes for region entries for the next RegionAttributes created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetEntryTimeToLive (ExpirationAction action, TimeSpan timeToLive) |
Sets the timeToLive expiration attributes for region entries for the next RegionAttributes created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetInitialCapacity (System::Int32 initialCapacity) |
Sets the entry initial capacity for the RegionAttributes being created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetLoadFactor (Single loadFactor) |
Sets the entry load factor for the next RegionAttributes created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetLruEntriesLimit (System::UInt32 entriesLimit) |
Sets a limit on the number of entries that will be held in the cache. | |
RegionAttributesFactory< TKey, TValue > ^ | SetPartitionResolver (IPartitionResolver< TKey, TValue >^ partitionresolver) |
Sets the PartitionResolver for the RegionAttributes being created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetPartitionResolver (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the partition resolver of the region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetPersistenceManager (IPersistenceManager< TKey, TValue >^ persistenceManager) |
Sets the PersistenceManager object that will be invoked for the persistence of the region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetPersistenceManager (IPersistenceManager< TKey, TValue >^ persistenceManager, Properties< String^, String^>^ config) |
Sets the PersistenceManager object that will be invoked for the persistence of the region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetPersistenceManager (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the persistence of the region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetPersistenceManager (String^ libPath, String^ factoryFunctionName, Properties< String^, String^>^ config) |
Sets the library path for the library that will be invoked for the persistence of the region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetPoolName (String^ poolName) |
Set the pool name for a Thin Client region. | |
RegionAttributesFactory< TKey, TValue > ^ | SetRegionIdleTimeout (ExpirationAction action, TimeSpan idleTimeout) |
Sets the idleTimeout expiration attributes for the region itself for the next RegionAttributes created. | |
RegionAttributesFactory< TKey, TValue > ^ | SetRegionTimeToLive (ExpirationAction action, TimeSpan timeToLive) |
Sets the timeToLive expiration attributes for the region itself for the next RegionAttributes created. | |
Factory class to create instances of RegionAttributes.
An RegionAttributesFactory instance maintains state for creating RegionAttributes instances. The setter methods are used to change the settings that will be used for creating the next attributes instance with the Create method. If you create a factory with the default constructor, then the factory is set up to create attributes with all default settings. You can also create a factory by providing a preset RegionAttributes.
Once a RegionAttributes is created, it can only be modified after it has been used to create a Region, and then only by using an AttributesMutator obtained from the region.
User-implemented plug-in for loading data on cache misses.
see SetCacheLoader, RegionAttributes.CacheLoader
User-implemented plug-in for intercepting cache modifications, e.g. for writing to an external data source.
see SetCacheWriter, RegionAttributes.CacheWriter
User-implemented plug-in for receiving and handling cache-related events.
see SetCacheListener, RegionAttributes.CacheListener
Expiration configuration for the entire region based on the lastModifiedTime ( CacheStatistics.LastModifiedTime ).
see SetRegionTimeToLive, RegionAttributes.RegionTimeToLive, AttributesMutator.SetRegionTimeToLive
Expiration configuration for the entire region based on the lastAccessedTime ( CacheStatistics.LastAccessedTime ).
see SetRegionIdleTimeout, RegionAttributes.RegionIdleTimeout, AttributesMutator.SetRegionIdleTimeout
Expiration configuration for individual entries based on the lastModifiedTime ( CacheStatistics.LastModifiedTime ).
see SetEntryTimeToLive, RegionAttributes.EntryTimeToLive, AttributesMutator.SetEntryTimeToLive
16
] The initial capacity of the map used for storing the entries.
see SetInitialCapacity, RegionAttributes.InitialCapacity
0.75
] The load factor of the map used for storing the entries.
see SetLoadFactor, RegionAttributes.LoadFactor
16
] The allowed concurrency among updates to values in the region is guided by the concurrencyLevel
, which is used as a hint for internal sizing. The actual concurrency will vary. Ideally, you should choose a value to accommodate as many threads as will ever concurrently modify values in the region. Using a significantly higher value than you need can waste space and time, and a significantly lower value can lead to thread contention. But overestimates and underestimates within an order of magnitude do not usually have much noticeable impact. A value of one is appropriate when it is known that only one thread will modify and all others will only read.
see SetConcurrencyLevel, RegionAttributes.ConcurrencyLevel
|
inline |
Creates a new RegionAttributesFactory
ready to create a RegionAttributes
with default settings.
Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::RegionAttributesFactory | ( | RegionAttributes< TKey, TValue >^ | regionAttributes | ) |
Creates a new instance of RegionAttributesFactory
ready to create a RegionAttributes
with the same settings as those in the specified RegionAttributes
.
regionAttributes | attributes used to initialize this RegionAttributesFactory |
RegionAttributes< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::Create | ( | ) |
Creates a RegionAttributes
with the current settings.
RegionAttributes
IllegalStateException | if the current settings violate the compatibility rules. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetCacheListener | ( | ICacheListener< TKey, TValue >^ | cacheListener | ) |
Sets the CacheListener for the RegionAttributes
being created.
cacheListener | user-defined cache listener, or null for no cache listener |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetCacheListener | ( | String^ | libPath, |
String^ | factoryFunctionName | ||
) |
Sets the library path for the library that will be invoked for the listener of the region.
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. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetCacheLoader | ( | ICacheLoader< TKey, TValue >^ | cacheLoader | ) |
Sets the cache loader for the RegionAttributes
being created.
cacheLoader | a user-defined cache loader, or null for no cache loader |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetCacheLoader | ( | String^ | libPath, |
String^ | factoryFunctionName | ||
) |
Sets the library path for the library that will be invoked for the loader of the region.
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. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetCacheWriter | ( | ICacheWriter< TKey, TValue >^ | cacheWriter | ) |
Sets the cache writer for the RegionAttributes
being created.
cacheWriter | user-defined cache writer, or null for no cache writer |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetCacheWriter | ( | String^ | libPath, |
String^ | factoryFunctionName | ||
) |
Sets the library path for the library that will be invoked for the writer of the region.
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. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetCachingEnabled | ( | bool | cachingEnabled | ) |
Set caching enabled flag for this region.
If set to false, then no data is stored in the local process, but events and distributions will still occur, and the region can still be used to put and remove, etc...
The default if not set is 'true', 'false' is illegal for regions of ScopeType.Local
scope.
cachingEnabled | if true, cache data for this region in this process. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetCloningEnabled | ( | bool | cloningEnabled | ) |
Set cloning enabled flag for this region.
If set to false, then there is no cloning will take place in case of delta. Delta will be applied on the old value which will change old value in-place.
The default if not set is 'false' of ScopeType.Local
scope.
cloningEnabled | if true, clone old value before applying delta so that in-place change would not occour.. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetConcurrencyChecksEnabled | ( | bool | concurrencyChecksEnabled | ) |
Sets concurrency checks enabled flag for this region.
If set to false, then the version checks will not occur.
The default if not set is 'true'
concurrencyChecksEnabled | if true, version checks for region entries will occur. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetConcurrencyLevel | ( | System::Int32 | concurrencyLevel | ) |
Sets the concurrency level of the next RegionAttributes
created.
This value is used in initializing the map that holds the entries.
concurrencyLevel | the concurrency level of the entry map |
IllegalArgumentException | if concurrencyLevel is nonpositive |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetDiskPolicy | ( | DiskPolicyType | diskPolicy | ) |
Sets the disk policy type for the next RegionAttributes
created.
diskPolicy | the disk policy to use for the region |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetEntryIdleTimeout | ( | ExpirationAction | action, |
TimeSpan | idleTimeout | ||
) |
Sets the idleTimeout expiration attributes for region entries for the next RegionAttributes
created.
action | The expiration action for which to set the timeout. |
idleTimeout | the idleTimeout in seconds for entries in this region. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetEntryTimeToLive | ( | ExpirationAction | action, |
TimeSpan | timeToLive | ||
) |
Sets the timeToLive expiration attributes for region entries for the next RegionAttributes
created.
action | The expiration action for which to set the timeout. |
timeToLive | the timeToLive in seconds for entries in this region. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetInitialCapacity | ( | System::Int32 | initialCapacity | ) |
Sets the entry initial capacity for the RegionAttributes
being created.
This value is used in initializing the map that holds the entries.
initialCapacity | the initial capacity of the entry map |
IllegalArgumentException | if initialCapacity is nonpositive |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetLoadFactor | ( | Single | loadFactor | ) |
Sets the entry load factor for the next RegionAttributes
created.
This value is used in initializing the map that holds the entries.
loadFactor | the load factor of the entry map |
IllegalArgumentException | if loadFactor is nonpositive |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetLruEntriesLimit | ( | System::UInt32 | entriesLimit | ) |
Sets a limit on the number of entries that will be held in the cache.
If a new entry is added while at the limit, the cache will evict the least recently used entry.
entriesLimit | The limit of the number of entries before eviction starts. Defaults to 0, meaning no LRU actions will used. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetPartitionResolver | ( | IPartitionResolver< TKey, TValue >^ | partitionresolver | ) |
Sets the PartitionResolver for the RegionAttributes
being created.
partitionresolver | user-defined partition resolver, or null for no partition resolver |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetPartitionResolver | ( | String^ | libPath, |
String^ | factoryFunctionName | ||
) |
Sets the library path for the library that will be invoked for the partition resolver of the region.
libPath | library pathname containing the factory function. |
factoryFunctionName | Name of factory function that creates a PartitionResolver for a native library, or the name of the method in the form {Namespace}.{Class Name}.{Method Name} that creates an IPartitionResolver for a managed library. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetPersistenceManager | ( | IPersistenceManager< TKey, TValue >^ | persistenceManager | ) |
Sets the PersistenceManager object that will be invoked for the persistence of the region.
persistenceManager | Persistence Manager object |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetPersistenceManager | ( | IPersistenceManager< TKey, TValue >^ | persistenceManager, |
Properties< String^, String^>^ | config | ||
) |
Sets the PersistenceManager object that will be invoked for the persistence of the region.
persistenceManager | Persistence Manager object |
config | The configuration properties to use for the PersistenceManager. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetPersistenceManager | ( | String^ | libPath, |
String^ | factoryFunctionName | ||
) |
Sets the library path for the library that will be invoked for the persistence of the region.
If the region is being created from a client on a server, or on a server directly, then This must be used to set the PersistenceManager.
libPath | The path of the PersistenceManager shared library. |
factoryFunctionName | The name of the factory function to create an instance of PersistenceManager object. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetPersistenceManager | ( | String^ | libPath, |
String^ | factoryFunctionName, | ||
Properties< String^, String^>^ | config | ||
) |
Sets the library path for the library that will be invoked for the persistence of the region.
If the region is being created from a client on a server, or on a server directly, then This must be used to set the PersistenceManager.
libPath | The path of the PersistenceManager shared library. |
factoryFunctionName | The name of the factory function to create an instance of PersistenceManager object. |
config | The configuration properties to use for the PersistenceManager. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetPoolName | ( | String^ | poolName | ) |
Set the pool name for a Thin Client region.
The pool with the name specified must be already created.
poolName | The name of the pool to attach to this region. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetRegionIdleTimeout | ( | ExpirationAction | action, |
TimeSpan | idleTimeout | ||
) |
Sets the idleTimeout expiration attributes for the region itself for the next RegionAttributes
created.
action | The expiration action for which to set the timeout. |
idleTimeout | the idleTimeout in seconds for the region as a whole. |
RegionAttributesFactory< TKey, TValue > ^ Apache::Geode::Client::RegionAttributesFactory< TKey, TValue >::SetRegionTimeToLive | ( | ExpirationAction | action, |
TimeSpan | timeToLive | ||
) |
Sets the timeToLive expiration attributes for the region itself for the next RegionAttributes
created.
action | The expiration action for which to set the timeout. |
timeToLive | the timeToLive in seconds for the region as a whole. |