|
GemFire 6.6.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RegionService
A RegionService provides access to existing regions that exist
in a GemFire cache.
Regions can be obtained using getRegion(java.lang.String)
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:
CacheFactory.create() creates a server instance of Cache.
ClientCacheFactory.create() creates a client instance of ClientCache.
ClientCache.createAuthenticatedView(Properties) creates a client multiuser authenticated cache view.
| Method Summary | ||
|---|---|---|
void |
close()
Terminates this region service and releases all its resources. |
|
CancelCriterion |
getCancelCriterion()
the cancellation criterion for this service |
|
QueryService |
getQueryService()
Return the QueryService for this region service. |
|
|
getRegion(String path)
Return the existing region (or subregion) with the specified path. |
|
boolean |
isClosed()
Indicates if this region service has been closed. |
|
Set<Region<?,?>> |
rootRegions()
Returns unmodifiable set of the root regions that in the region service. |
|
| Method Detail |
|---|
CancelCriterion getCancelCriterion()
<K,V> Region<K,V> getRegion(String path)
path - the path to the region
IllegalArgumentException - if path is null, the empty string, or "/"Set<Region<?,?>> rootRegions()
QueryService getQueryService()
void close()
Region.close() on each region in the service.
After this service is closed, any further
method calls on this service or any region object
obtained from the service will throw
CacheClosedException, unless otherwise noted.
CacheClosedException - if the service is already closed.boolean isClosed()
CacheClosedException
if the service is closed.
|
GemFire 6.6.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||