此内容没有您所选择的语言版本。

8.3.3. Unscheduled Write-Behind Strategy Configuration (Remote Client-Server Mode)


To set the write-behind stragy in JBoss Data Grid's Remote Client-Server mode, add the write-behind element to the target cache store configuration as follows:
<file-store passivation="false" 
            path="${PATH}" 
            purge="true" 
            shared="false">
    <write-behind modification-queue-size="1024" 
                  shutdown-timeout="25000"  
                  flush-lock-timeout="15000" 
                  thread-pool-size="5" />
</file-store>
Copy to Clipboard Toggle word wrap
The write-behind element uses the following configuration parameters:
  • The modification-queue-size parameter specifies the maximum number of entries in the asynchronous queue. If the queue is full, the cache uses the write-through strategy until it is able to accept new entries again. The default value for this parameter is 1024 bytes.
  • The shutdown-timeout parameter specifies the time in milliseconds after which the cache store is shut down. The default value for this parameter is 25000.
  • The flush-lock-timeout 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.
  • The thread-pool-size parameter specified the size of the thread pool. The threads in this thread pool apply modifications to the cache store. The default value for this parameter is 5.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat