GemFireCache represents the singleton cache that must be created in order to connect to Gemfire server.
More...
Inherits gemfire::RegionService.
Inherited by gemfire::Cache.
GemFireCache represents the singleton cache that must be created in order to connect to Gemfire server.
Users must create a Cache. Instances of this interface are created using one of the following methods:
virtual void gemfire::RegionService::close |
( |
| ) |
|
|
pure virtualinherited |
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 gemfire::Cache.
Returns a factory that can create a PdxInstance.
- Parameters
-
className | the fully qualified class name that the PdxInstance will become when it is fully deserialized. |
- Returns
- the factory
Implemented in gemfire::Cache.
virtual const char* gemfire::GemFireCache::getName |
( |
| ) |
const |
|
pure virtual |
public methods
Returns the name of this cache.
- Returns
- the string name of this cache
Implemented in gemfire::Cache.
virtual bool gemfire::GemFireCache::getPdxIgnoreUnreadFields |
( |
| ) |
|
|
pure virtual |
virtual bool gemfire::GemFireCache::getPdxReadSerialized |
( |
| ) |
|
|
pure virtual |
virtual RegionPtr gemfire::RegionService::getRegion |
( |
const char * |
name | ) |
|
|
pure virtualinherited |
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 gemfire::Cache.
virtual void gemfire::GemFireCache::initializeDeclarativeCache |
( |
const char * |
cacheXml | ) |
|
|
pure virtual |
Initializes the cache from an xml file.
- Parameters
-
cacheXml | Valid cache.xml file |
Implemented in gemfire::Cache.
virtual bool gemfire::RegionService::isClosed |
( |
| ) |
const |
|
pure virtualinherited |
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 gemfire::Cache.
void gemfire::SharedBase::preserveSB |
( |
| ) |
const |
|
inherited |
Atomically increment reference count.
int32_t gemfire::SharedBase::refCount |
( |
| ) |
|
|
inlineinherited |
- Returns
- the reference count
void gemfire::SharedBase::releaseSB |
( |
| ) |
const |
|
inherited |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
virtual void gemfire::RegionService::rootRegions |
( |
VectorOfRegion & |
regions | ) |
|
|
pure virtualinherited |
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 gemfire::Cache.