VMware Tanzu GemFire Native .NET Reference
10.1.5
|
A RegionService provides access to existing regions that exist in a Cache. More...
Inherited by Apache::Geode::Client::IGeodeCache.
Public Member Functions | |
void | Close () |
Terminates this object cache and releases all the local resources. More... | |
IPdxInstanceFactory ^ | CreatePdxInstanceFactory (String^ className) |
Returns a factory that can create a PdxInstance. More... | |
Client::QueryService ^ | GetQueryService () |
Get a query service object to be able to query the cache. More... | |
template<class TKey , class TValue > | |
IRegion< TKey, TValue > ^ | GetRegion (String^ name) |
Returns an existing region given the full path from root, or null if no such region exists. More... | |
template<class TKey , class TValue > | |
array< IRegion< TKey, TValue >^> ^ | RootRegions () |
Returns an array of root regions in the cache. More... | |
Properties | |
bool | IsClosed [get] |
True if this cache has been closed. More... | |
A RegionService provides access to existing regions that exist in a Cache.
Regions can be obtained using Cache.GetRegion and queried using <see cref="Cache.GetQueryService/>.
Caches are obtained from methods on the CacheFactory.Create class.
When a cache will no longer be used, call Cache.Close. Once it Cache.IsClosed any attempt to use it will cause a CacheClosedException
to be thrown.
A cache can have multiple root regions, each with a different name.
void Apache::Geode::Client::IRegionService::Close | ( | ) |
Terminates this object cache and releases all the local resources.
If RegionService is created from Cache.CreateAuthenticatedView, then it clears user related security data.
After this cache is closed, any further method call on this cache or any region object will throw CacheClosedException
, unless otherwise noted.
CacheClosedException | if the cache is already closed. |
Implemented in Apache::Geode::Client::Cache.
IPdxInstanceFactory ^ Apache::Geode::Client::IRegionService::CreatePdxInstanceFactory | ( | String^ | className | ) |
Returns a factory that can create a PdxInstance.
className | the fully qualified class name that the PdxInstance will become when it is fully deserialized. |
Implemented in Apache::Geode::Client::Cache.
Client::QueryService ^ Apache::Geode::Client::IRegionService::GetQueryService | ( | ) |
Get a query service object to be able to query the cache.
Currently only works against the java server in native mode, and at least some endpoints must have been defined in some regions before actually firing a query.
Implemented in Apache::Geode::Client::Cache.
IRegion<TKey, TValue> ^ Apache::Geode::Client::IRegionService::GetRegion | ( | String^ | name | ) |
Returns an existing region given the full path from root, or null if no such region exists.
name | the name of the region |
Implemented in Apache::Geode::Client::Cache.
array<IRegion<TKey, TValue>^> ^ Apache::Geode::Client::IRegionService::RootRegions | ( | ) |
Returns an array of root regions in the cache.
This set is a snapshot and is not backed by the cache.
It is not supported when Cache is created from Pool.
Implemented in Apache::Geode::Client::Cache.
|
get |
True if this cache has been closed.
After a new cache object is created, this method returns false. After Close is called on this cache object, this method returns true.