Apache Geode Native .NET Reference 1.15.0
|
#include <RegionFactory.hpp>
Public Member Functions | |
template<class TKey , class TValue > | |
IRegion< TKey, TValue > ^ | Create (String^ regionName) |
Creates a region with the given name. More... | |
template<class TKey , class TValue > | |
RegionFactory ^ | SetCacheListener (ICacheListener< TKey, TValue >^ cacheListener) |
Sets the CacheListener for the RegionAttributes being created. More... | |
RegionFactory ^ | SetCacheListener (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the listener of the region. More... | |
template<class TKey , class TValue > | |
RegionFactory ^ | SetCacheLoader (ICacheLoader< TKey, TValue >^ cacheLoader) |
Sets the cache loader for the RegionAttributes being created. More... | |
RegionFactory ^ | SetCacheLoader (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the loader of the region. More... | |
template<class TKey , class TValue > | |
RegionFactory ^ | SetCacheWriter (ICacheWriter< TKey, TValue >^ cacheWriter) |
Sets the cache writer for the RegionAttributes being created. More... | |
RegionFactory ^ | SetCacheWriter (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the writer of the region. More... | |
RegionFactory ^ | SetCachingEnabled (bool cachingEnabled) |
Set caching enabled flag for this region. More... | |
RegionFactory ^ | SetCloningEnabled (bool cloningEnabled) |
Set cloning enabled flag for this region. More... | |
RegionFactory ^ | SetConcurrencyChecksEnabled (bool concurrencyChecksEnabled) |
Sets concurrency checks enabled flag for this region. More... | |
RegionFactory ^ | SetConcurrencyLevel (System::Int32 concurrencyLevel) |
Sets the concurrency level of the next RegionAttributes created. More... | |
RegionFactory ^ | SetDiskPolicy (DiskPolicyType diskPolicy) |
Sets the disk policy type for the next RegionAttributes created. More... | |
RegionFactory ^ | SetEntryIdleTimeout (ExpirationAction action, TimeSpan idleTimeout) |
Sets the idleTimeout expiration attributes for region entries for the next RegionAttributes created. More... | |
RegionFactory ^ | SetEntryTimeToLive (ExpirationAction action, TimeSpan timeToLive) |
Sets the timeToLive expiration attributes for region entries for the next RegionAttributes created. More... | |
RegionFactory ^ | SetInitialCapacity (System::Int32 initialCapacity) |
Sets the entry initial capacity for the RegionAttributes being created. More... | |
RegionFactory ^ | SetLoadFactor (Single loadFactor) |
Sets the entry load factor for the next RegionAttributes created. More... | |
RegionFactory ^ | SetLruEntriesLimit (System::UInt32 entriesLimit) |
Sets a limit on the number of entries that will be held in the cache. More... | |
template<class TKey , class TValue > | |
RegionFactory ^ | SetPartitionResolver (IPartitionResolver< TKey, TValue >^ partitionresolver) |
Sets the PartitionResolver for the RegionAttributes being created. More... | |
RegionFactory ^ | SetPartitionResolver (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the partition resolver of the region. More... | |
template<class TKey , class TValue > | |
RegionFactory ^ | SetPersistenceManager (Client::IPersistenceManager< TKey, TValue >^ persistenceManager) |
Sets the persistence manager for the RegionAttributes being created. More... | |
template<class TKey , class TValue > | |
RegionFactory ^ | SetPersistenceManager (Client::IPersistenceManager< TKey, TValue >^ persistenceManager, Properties< String^, String^>^ config) |
Sets the persistence manager for the RegionAttributes being created. More... | |
RegionFactory ^ | SetPersistenceManager (String^ libPath, String^ factoryFunctionName) |
Sets the library path for the library that will be invoked for the persistence of the region. More... | |
RegionFactory ^ | 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. More... | |
RegionFactory ^ | SetPoolName (String^ poolName) |
Set the pool name for a Thin Client region. More... | |
RegionFactory ^ | SetRegionIdleTimeout (ExpirationAction action, TimeSpan idleTimeout) |
Sets the idleTimeout expiration attributes for the region itself for the next RegionAttributes created. More... | |
RegionFactory ^ | SetRegionTimeToLive (ExpirationAction action, TimeSpan timeToLive) |
Sets the timeToLive expiration attributes for the region itself for the next RegionAttributes created. More... | |
This interface provides for the configuration and creation of instances of Region.
IRegion< TKey, TValue > ^ Apache::Geode::Client::RegionFactory::Create | ( | String^ | regionName | ) |
Creates a region with the given name.
The region is just created locally. It is not created on the server to which this client is connected with.
If Pool attached with Region is in multiusersecure mode then don't use return instance of region as no credential are attached with this instance. Get instance of region from <see cref="Cache.CreateAuthenticatedView" to do the operation on Cache.
name | the name of the region to create |
RegionExistsException | if a region with the same name is already in this cache |
CacheClosedException | if the cache is closed |
OutOfMemoryException | if the memory allocation failed |
RegionCreationFailedException | if the call fails due to incomplete mirror initialization |
InitFailedException | if the optional PersistenceManager fails to initialize |
UnknownException | otherwise |
RegionFactory ^ Apache::Geode::Client::RegionFactory::SetCacheListener | ( | ICacheListener< TKey, TValue >^ | cacheListener | ) |
Sets the CacheListener for the RegionAttributes
being created.
cacheListener | user-defined cache listener, or null for no cache listener |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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 |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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 |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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.. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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 |
RegionFactory ^ Apache::Geode::Client::RegionFactory::SetDiskPolicy | ( | DiskPolicyType | diskPolicy | ) |
Sets the disk policy type for the next RegionAttributes
created.
diskPolicy | the disk policy to use for the region |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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 |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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 |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::SetPartitionResolver | ( | IPartitionResolver< TKey, TValue >^ | partitionresolver | ) |
Sets the PartitionResolver for the RegionAttributes
being created.
partitionresolver | user-defined partition resolver, or null for no partition resolver |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::SetPersistenceManager | ( | Client::IPersistenceManager< TKey, TValue >^ | persistenceManager | ) |
Sets the persistence manager for the RegionAttributes
being created.
persistenceManager | a user-defined persistence manager, or null for no persistence manager |
RegionFactory ^ Apache::Geode::Client::RegionFactory::SetPersistenceManager | ( | Client::IPersistenceManager< TKey, TValue >^ | persistenceManager, |
Properties< String^, String^>^ | config | ||
) |
Sets the persistence manager for the RegionAttributes
being created.
persistenceManager | a user-defined persistence manager, or null for no persistence manager |
config | The configuration properties to use for the PersistenceManager. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |
RegionFactory ^ Apache::Geode::Client::RegionFactory::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. |