配置 EHCache 尝试连接到已关闭的 Terracotta 服务器时的获取尝试持续时间
如果我尝试通过调用 net.sf.ehcache.CacheManager.create(); 连接到当前已关闭的 Terracotta 服务器,EHCache 会在抛出异常之前持续重试连接尝试 300 秒此消息:
无法从位于“terracottahost:9510”的服务器获取配置数据。获取尝试持续时间:300 秒。
有什么办法可以将此时间修改为 30 或 60 秒吗?
if I try to connect to a Terracotta server that is currently down by calling net.sf.ehcache.CacheManager.create();
, EHCache keeps retrying connection attempts for a full 300 seconds before throwing an exception with this message:
Could not fetch configuration data from the server at 'terracottahost:9510'. Fetch attempt duration: 300 seconds.
Is there any way to modify this time to be maybe 30 or 60 seconds?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是(我认为)他们的开发人员在 Terracotta 论坛上发布给我的:
不幸的是,超时看起来是硬编码的。我鼓励您提出功能请求以允许其可配置。
所以看起来这毕竟是不可配置的。
This was posted to me on the Terracotta forums by (I think) their developer:
Unfortunately that timeout looks like it is hard coded. I encourage you to open a feature request to allow it to be configurable.
So it would seem that this is not configurable after all.