此内容没有您所选择的语言版本。
18.2.2. Unscheduled Write-Behind Strategy Configuration (Remote Client-Server Mode)
To set the write-behind strategy in Red Hat JBoss Data Grid's Remote Client-Server mode, add the
write-behind
element to the target cache store configuration as follows:
Procedure 18.2. The write-behind
Element
The
write-behind
element uses the following configuration parameters:
The
modification-queue-size
ParameterThemodification-queue-size
parameter sets the modification queue size for the asynchronous store. If updates occur faster than the cache store can process the queue, the asynchronous store behaves like a synchronous store. The store behavior remains synchronous and blocks elements until the queue is able to accept them, after which the store behavior becomes asynchronous again.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
shutdown-timeout
ParameterTheshutdown-timeout
parameter specifies the time in milliseconds after which the cache store is shut down. When the store is stopped some modifications may still need to be applied. Setting a large timeout value will reduce the chance of data loss. The default value for this parameter is25000
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
flush-lock-timeout
ParameterTheflush-lock-timeout
parameter specifies the time (in milliseconds) to acquire the lock that guards the state to be periodically flushed. The default value for this parameter is15000
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
thread-pool-size
ParameterThethread-pool-size
parameter specifies the size of the thread pool. The threads in this thread pool apply modifications to the cache store. The default value for this parameter is5
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow