A RegionService provides access to existing regions that exist in a Geode cache.
More...
Inherits apache::geode::client::SharedBase.
Inherited by apache::geode::client::GeodeCache.
A RegionService provides access to existing regions that exist in a Geode cache.
Regions can be obtained using getRegion and queried using getQueryService. The service should be closed to free up resources once it is no longer needed. Once it is closed any attempt to use it or any regions obtained from it will cause a CacheClosedException to be thrown.
Instances of the interface are created using one of the following methods:
virtual void apache::geode::client::RegionService::close |
( |
| ) |
|
|
pure virtual |
Terminates this object cache and releases all the local resources.
After this cache is closed, any further method call on this cache or any region object will throw CacheClosedException
, unless otherwise noted. If RegionService is created from Cache#createAuthenticatedView", then it clears user related security data.
- Parameters
-
keepalive | whether to keep a durable CQ kept alive for this user. |
- Exceptions
-
CacheClosedException,if | the cache is already closed. |
Implemented in apache::geode::client::Cache.
virtual PdxInstanceFactoryPtr apache::geode::client::RegionService::createPdxInstanceFactory |
( |
const char * |
className | ) |
|
|
pure virtual |
virtual QueryServicePtr apache::geode::client::RegionService::getQueryService |
( |
| ) |
|
|
pure virtual |
virtual RegionPtr apache::geode::client::RegionService::getRegion |
( |
const char * |
name | ) |
|
|
pure virtual |
Look up a region with the name.
- Parameters
-
name | the region's name, such as root . |
- Returns
- region, or NULLPTR if no such region exists.
Implemented in apache::geode::client::Cache.
virtual bool apache::geode::client::RegionService::isClosed |
( |
| ) |
const |
|
pure virtual |
public methods
Indicates if this cache has been closed. After a new cache object is created, this method returns false; After the close is called on this cache object, this method returns true.
- Returns
- true, if this cache is closed; false, otherwise
Implemented in apache::geode::client::Cache.
void apache::geode::client::SharedBase::preserveSB |
( |
| ) |
const |
|
inherited |
Atomically increment reference count.
int32_t apache::geode::client::SharedBase::refCount |
( |
| ) |
|
|
inlineinherited |
- Returns
- the reference count
void apache::geode::client::SharedBase::releaseSB |
( |
| ) |
const |
|
inherited |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
virtual void apache::geode::client::RegionService::rootRegions |
( |
VectorOfRegion & |
regions | ) |
|
|
pure virtual |
Returns a set of root regions in the cache.
This set is a snapshot and is not backed by the Cache. The vector passed in is cleared and the regions are added to it.
- Parameters
-
regions | the returned set of regions |
Implemented in apache::geode::client::Cache.