VMware Tanzu GemFire Native .NET Reference 10.2.7
|
Provides a distributed cache. More...
#include <Cache.hpp>
Inherits Apache::Geode::Client::IGeodeCache.
Public Member Functions | |
virtual void | Close () |
Terminates this object cache and releases all the local resources. More... | |
virtual void | Close (bool keepalive) |
Terminates this object cache and releases all the local resources. More... | |
IRegionService ^ | CreateAuthenticatedView (Properties< String^, Object^>^ credentials) |
Returns the instance of IRegionService to do the operation on Cache with different Credential. More... | |
IRegionService ^ | CreateAuthenticatedView (Properties< String^, Object^>^ credentials, String^ poolName) |
Returns the instance of IRegionService to do the operation on Cache with different Credential. More... | |
virtual IPdxInstanceFactory ^ | CreatePdxInstanceFactory (String^ className) |
Returns a factory that can create a PdxInstance . More... | |
RegionFactory ^ | CreateRegionFactory (RegionShortcut regionShortcut) |
Returns the instance of RegionFactory to create the region More... | |
virtual bool | GetPdxIgnoreUnreadFields () |
summary> Returns whether PdxInstance is preferred for PDX types instead of .NET object. More... | |
virtual PoolFactory ^ | GetPoolFactory () |
Returns a PoolFactory that can be used to create a Pool and that provides access to all Pool attributes. More... | |
virtual PoolManager ^ | GetPoolManager () |
Returns a PoolManager that provides for the configuration and creation of instances of PoolFactory. More... | |
virtual Client::QueryService ^ | GetQueryService () |
Get a query service object to be able to query the cache. More... | |
virtual Client::QueryService ^ | GetQueryService (String^ poolName) |
Get a query service object to be able to query the cache. More... | |
template<class TKey , class TValue > | |
virtual IRegion< TKey, TValue > ^ | GetRegion (String^ path) |
Returns an existing region given the full path from root, or null if no such region exists. More... | |
virtual void | InitializeDeclarativeCache (String^ cacheXml) |
Initializes the cache from an XML file. More... | |
virtual void | ReadyForEvents () |
Send the client-ready message to the server for a durable client. More... | |
template<class TKey , class TValue > | |
virtual array< IRegion< TKey, TValue >^> ^ | RootRegions () |
Returns an array of root regions in the cache. More... | |
Properties | |
virtual Apache::Geode::Client::CacheTransactionManager^ | CacheTransactionManager [get] |
Returns the cache transaction manager of CacheFactory.Create this cache. More... | |
virtual bool | IsClosed [get] |
True if this cache has been closed. More... | |
virtual String^ | Name [get] |
Returns the name of this cache. More... | |
Provides a distributed cache.
Caches are obtained from Create 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.
|
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.
CacheClosedException | if the cache is already closed. |
Implements Apache::Geode::Client::IRegionService.
|
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.
keepalive | whether to keep a durable client's queue alive |
CacheClosedException | if the cache is already closed. |
IRegionService ^ Apache::Geode::Client::Cache::CreateAuthenticatedView | ( | Properties< String^, Object^>^ | credentials | ) |
Returns the instance of IRegionService to do the operation on Cache with different Credential.
Default pool should be in multiuser mode CacheFactory.SetMultiuserAuthentication
credentials | the user Credentials. |
IRegionService ^ Apache::Geode::Client::Cache::CreateAuthenticatedView | ( | Properties< String^, Object^>^ | credentials, |
String^ | poolName | ||
) |
Returns the instance of IRegionService to do the operation on Cache with different Credential.
Default pool should be in multiuser mode CacheFactory.SetMultiuserAuthentication
credentials | the user Credentials. |
poolName | Pool, which is in multiuser mode. |
summary> Returns whether Cache saves unread fields for Pdx types. /summary>
|
virtual |
Returns a factory that can create a PdxInstance
.
className | the fully qualified class name that the PdxInstance will become when it is fully deserialized. |
Implements Apache::Geode::Client::IRegionService.
RegionFactory ^ Apache::Geode::Client::Cache::CreateRegionFactory | ( | RegionShortcut | regionShortcut | ) |
Returns the instance of RegionFactory to create the region
Pass the RegionShortcut to set the default region attributes
regionShortcut | the regionShortcut to set the default region attributes |
|
virtual |
summary> Returns whether PdxInstance
is preferred for PDX types instead of .NET object.
/summary>
Implements Apache::Geode::Client::IGeodeCache.
|
virtual |
Returns a PoolFactory that can be used to create a Pool and that provides access to all Pool attributes.
|
virtual |
Returns a PoolManager that provides for the configuration and creation of instances of PoolFactory.
|
virtual |
Get a query service object to be able to query the cache.
Supported only when cache is created from Pool(pool is in multiuserSecure mode)
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.
Implements Apache::Geode::Client::IRegionService.
|
virtual |
|
virtual |
Returns an existing region given the full path from root, or null if no such region exists.
If Pool attached with Region is in multiusersecure mode then don't use return instance of region as no credential are attached with this instance. Get region from RegionService instance of Cache.Cache.CreateAuthenticatedView(std::shared_ptr<PropertiesPtr>).
path | the pathname of the region |
Implements Apache::Geode::Client::IRegionService.
|
virtual |
Initializes the cache from an XML file.
cacheXml | pathname of a cache.xml file |
Implements Apache::Geode::Client::IGeodeCache.
|
virtual |
Send the client-ready message to the server for a durable client.
This method should only be called for durable clients and with a cache server version 5.5 onwards.
IllegalStateException | if there was a problem sending the message to the server. |
|
virtual |
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.
Implements Apache::Geode::Client::IRegionService.
|
get |
Returns the cache transaction manager of CacheFactory.Create this 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.
|
get |
Returns the name of this cache.
This method does not throw CacheClosedException
if the cache is closed.