Inherited by gemfire::Cache.
Users must create a Cache. Instances of this interface are created using one of the following methods:
Public Member Functions | |
| virtual void | close ()=0 |
| Terminates this object cache and releases all the local resources. | |
| virtual PdxInstanceFactoryPtr | createPdxInstanceFactory (const char *className)=0 |
| Returns a factory that can create a PdxInstance. | |
| virtual DistributedSystemPtr | getDistributedSystem () const =0 |
| Returns the distributed system that this cache was created with. | |
| virtual const char * | getName () const =0 |
| virtual bool | getPdxIgnoreUnreadFields ()=0 |
| Returns whether Cache saves unread fields for Pdx types. | |
| virtual bool | getPdxReadSerialized ()=0 |
| Returns whether PdxInstance is preferred for PDX types instead of C++ object. | |
| virtual QueryServicePtr | getQueryService ()=0 |
| Gets the QueryService from which a new Query can be obtained. | |
| virtual RegionPtr | getRegion (const char *name)=0 |
| Look up a region with the name. | |
| virtual void | initializeDeclarativeCache (const char *cacheXml)=0 |
| Initializes the cache from an xml file. | |
| virtual bool | isClosed () const =0 |
| void | preserveSB () const |
| Atomically increment reference count. | |
| int32_t | refCount () |
| |
| void | releaseSB () const |
| Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. | |
| virtual void | rootRegions (VectorOfRegion ®ions)=0 |
| Returns a set of root regions in the cache. | |
| virtual void gemfire::RegionService::close | ( | ) | [pure virtual, inherited] |
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.
| keepalive | whether to keep a durable CQ kept alive for this user. |
| CacheClosedException,if | the cache is already closed. |
Implemented in gemfire::Cache.
| virtual PdxInstanceFactoryPtr gemfire::RegionService::createPdxInstanceFactory | ( | const char * | className | ) | [pure virtual, inherited] |
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 gemfire::Cache.
| virtual DistributedSystemPtr gemfire::GemFireCache::getDistributedSystem | ( | ) | const [pure virtual] |
| virtual const char* gemfire::GemFireCache::getName | ( | ) | const [pure virtual] |
public methods Returns the name of this cache.
Implemented in gemfire::Cache.
| virtual bool gemfire::GemFireCache::getPdxIgnoreUnreadFields | ( | ) | [pure virtual] |
| virtual bool gemfire::GemFireCache::getPdxReadSerialized | ( | ) | [pure virtual] |
Returns whether PdxInstance is preferred for PDX types instead of C++ object.
Implemented in gemfire::Cache.
| virtual QueryServicePtr gemfire::RegionService::getQueryService | ( | ) | [pure virtual, inherited] |
Gets the QueryService from which a new Query can be obtained.
Implemented in gemfire::Cache.
| virtual RegionPtr gemfire::RegionService::getRegion | ( | const char * | name | ) | [pure virtual, inherited] |
Look up a region with the name.
| name | the region's name, such as root. |
Implemented in gemfire::Cache.
| virtual void gemfire::GemFireCache::initializeDeclarativeCache | ( | const char * | cacheXml | ) | [pure virtual] |
Initializes the cache from an xml file.
| cacheXml | Valid cache.xml file |
Implemented in gemfire::Cache.
| virtual bool gemfire::RegionService::isClosed | ( | ) | const [pure virtual, inherited] |
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.
Implemented in gemfire::Cache.
| void gemfire::SharedBase::preserveSB | ( | ) | const [inherited] |
Atomically increment reference count.
| int32_t gemfire::SharedBase::refCount | ( | ) | [inline, inherited] |
| 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 virtual, inherited] |
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.
| regions | the returned set of regions |
Implemented in gemfire::Cache.