setFetchInMemoryState(boolean flag)
Sets whether or not any initial or subsequent partial state transfer
should include in-memory state.

void

setInactiveOnStartup(boolean inactiveOnStartup)
Sets whether the entire tree is inactive upon startup, only responding
to replication messages after Region.activate() is
called to activate one or more parts of the tree.

setMultiplexerStack(java.lang.String stackName)
Used with JGroups multiplexer, specifies stack to be used (e.g., fc-fast-minimalthreads)
This attribute is optional; if not provided, a default multiplexer stack will be used.

getInitialStateRetrievalTimeout

Get the max time to wait until the initial state is retrieved. This is used in a replicating cache: when a new cache joins the cluster, it needs to acquire the (replicated) state of the other members to initialize itself. If no state has been received within timeout milliseconds, the map will be empty.

Returns:

long Number of milliseconds to wait for the state. 0 means to wait forever.

getStateRetrievalTimeout

long getStateRetrievalTimeout()

Get the max time to wait until the state is retrieved. This is used in a replicating cache: when a new cache joins the cluster, it needs to acquire the (replicated) state of the other members to initialize itself. If no state has been received within timeout milliseconds, the map will be empty.

Returns:

long Number of milliseconds to wait for the state. 0 means to wait forever.

getSyncReplTimeout

long Number of milliseconds after which a sync repl call must return. 0 means to wait forever

setSyncReplTimeout

void setSyncReplTimeout(long timeout)

Sets the default maximum wait time for synchronous replication to receive all results

getUseReplQueue

boolean getUseReplQueue()

setUseReplQueue

void setUseReplQueue(boolean flag)

getReplQueueInterval

long getReplQueueInterval()

setReplQueueInterval

void setReplQueueInterval(long interval)

getReplQueueMaxElements

int getReplQueueMaxElements()

setReplQueueMaxElements

void setReplQueueMaxElements(int max_elements)

getIsolationLevel

java.lang.String getIsolationLevel()

Returns the transaction isolation level.

setIsolationLevel

void setIsolationLevel(java.lang.String level)

Set the transaction isolation level. This determines the locking strategy to be used

getFetchInMemoryState

boolean getFetchInMemoryState()

Returns whether or not any initial state transfer or subsequent partial
state transfer following an activateRegion call should
include in-memory state. Allows for warm/hot caches (true/false). The
characteristics of a state transfer can be further defined by a cache
loader's FetchPersistentState property.

setFetchInMemoryState

void setFetchInMemoryState(boolean flag)

Sets whether or not any initial or subsequent partial state transfer
should include in-memory state.

getReplicationVersion

java.lang.String getReplicationVersion()

Gets the format version of the data transferred during an initial state
transfer or a call to Region.activate(). Different
releases of JBossCache may format this data differently; this property
identifies the format version being used by this cache instance.

setReplicationVersion

void setReplicationVersion(java.lang.String version)

Sets the format version of the data transferred during an initial state
transfer or a call to Region.activate(). Different
releases of JBossCache may format this data differently; this property
identifies the format version being used by this cache instance. Setting
this property to a value other than the default allows a cache instance
from a later release to interoperate with a cache instance from an
earlier release.

Parameters:

version - a short identifying JBossCache release;
e.g. 124 for JBossCache 1.2.4

getLockAcquisitionTimeout

long getLockAcquisitionTimeout()

Default max time to wait for a lock. If the lock cannot be acquired within this time, a LockingException will be thrown.

Returns:

long Max number of milliseconds to wait for a lock to be acquired

setLockAcquisitionTimeout

void setLockAcquisitionTimeout(long timeout)

Set the max time for lock acquisition. A value of 0 means to wait forever (not recomended). Note that lock acquisition timeouts may be removed in the future when we have deadlock detection.