-
Language:
English
-
Language:
English
9.2. Configure Locking (Remote Client-Server Mode)
In Remote Client-Server mode, locking is configured using the
locking
element within the cache tags (for example, invalidated-cache
, distributed-cache
, replicated-cache
or local-cache
).
The following is a sample of a basic locking configuration for a default cache in JBoss Data Grid's Library mode:
<distributed-cache> <locking isolation="REPEATABLE_READ" acquire-timeout="30000" concurrency-level="1000" striping="false" /> ... </distributed-cache>
- The
isolation
parameter defines the isolation level used for the local cache. Valid values for this parameter areREPEATABLE_READ
andREAD_COMMITTED
. - The
acquire-timeout
parameter specifies the number of milliseconds after which lock acquisition will time out. - The
concurrency-level
parameter defines the number of lock stripes used by the LockManager. - The
striping
parameter specifies whether lock striping will be used for the local cache.