When a cache is created a DistributedSystem is also created.
This system tells the cache where to find other caches on the network
and how to communicate with them.
The system can also specify a
"cache-xml-file"
property which will cause this cache to be initialized with the contents
of that file. The contents must comply with the
"doc-files/cache7_0.dtd" file
and the top level element must be a cache element.

getMembers(Region r)
Returns a set of the members in the distributed system that have the
given region.

int

getMessageSyncInterval()
Gets the frequency (in seconds) at which a message will be sent by the
primary cache-server to all the secondary cache-server nodes to remove the
events which have already been dispatched from the queue.

int

getSearchTimeout()
Gets the number of seconds a cache
get operation
can spend searching for a value before it times out.

setIsServer(boolean isServer)
Sets whether or not this Cache resides in a
long-running "cache server" VM.

void

setLockLease(int seconds)
Sets the length, in seconds, of distributed lock leases obtained
by this cache.

void

setLockTimeout(int seconds)
Sets the number of seconds a cache operation may wait to obtain a
distributed lock lease before timing out.

void

setMessageSyncInterval(int seconds)
Sets the frequency (in seconds) at which a message will be sent by the
primary cache-server node to all the secondary cache-server nodes to remove
the events which have already been dispatched from the queue.

void

setSearchTimeout(int seconds)
Sets the number of seconds a cache get operation can spend searching
for a value.

close

Terminates this object cache and releases all the resources.
Calls Region.close() on each region in the cache.
After this cache is closed, any further
method call on this cache or any region object will throw
CacheClosedException, unless otherwise noted.

Parameters:

keepalive - whether the server should keep the durable client's queues alive for the timeout period

getSecurityLoggerI18n

Deprecated.as of 6.5 use getSecurityLogger().convertToLogWriterI18n() instead

Internal GemStone method for accessing the internationalized
logging object for GemFire, use GemFireCache.getSecurityLogger() instead.
This method does not throw
CacheClosedException if the cache is closed.

Returns:

the security logging object

getLockTimeout

int getLockTimeout()

Gets the number of seconds a cache operation will wait to obtain
a distributed lock lease.
This method does not throw
CacheClosedException if the cache is closed.

setLockTimeout

void setLockTimeout(int seconds)

Sets the number of seconds a cache operation may wait to obtain a
distributed lock lease before timing out.

getMessageSyncInterval

int getMessageSyncInterval()

Gets the frequency (in seconds) at which a message will be sent by the
primary cache-server to all the secondary cache-server nodes to remove the
events which have already been dispatched from the queue.

Returns:

The time interval in seconds

setMessageSyncInterval

void setMessageSyncInterval(int seconds)

Sets the frequency (in seconds) at which a message will be sent by the
primary cache-server node to all the secondary cache-server nodes to remove
the events which have already been dispatched from the queue.

setLockLease

getSearchTimeout

int getSearchTimeout()

Gets the number of seconds a cache
get operation
can spend searching for a value before it times out.
The search includes any time spent loading the object.
When the search times out it causes the get to fail by throwing
an exception.
This method does not throw
CacheClosedException if the cache is closed.

setSearchTimeout

void setSearchTimeout(int seconds)

Sets the number of seconds a cache get operation can spend searching
for a value.

setGatewayConflictResolver

Adds a gateway event conflict resolution resolver. This is invoked
if an event is processed that comes from a different distributed system
than the last event to modify the affected entry. It may alter
the event or disallow the event. If it does neither the event is applied
to the cache if its timestamp is newer than what is in the cache or if
it is the same and the event's distributed system ID is larger than that
of the last event to modify the affected entry.

Parameters:

resolver -

Since:

7.0

getGatewayConflictResolver

setIsServer

void setIsServer(boolean isServer)

Sets whether or not this Cache resides in a
long-running "cache server" VM. A cache server may be an
application VM or may be a stand-along VM launched using administration API or the cacheserver command line
utility.

readyForEvents

Notifies the server that this client is ready to receive updates.
This method is used by durable clients to notify servers that they
are ready to receive updates. As soon as the server receives this message,
it will forward updates to this client (if necessary).

Durable clients must call this method after they are done creating regions.
If it is called before the client creates the regions then updates will be lost.
Any time a new Pool is created and regions have been added to it then
this method needs to be called again.