Configuring the fetch attempt duration when EHCache attempts to connect to a Terracotta server that
Posted
by Sevas
on Stack Overflow
See other posts from Stack Overflow
or by Sevas
Published on 2010-04-15T14:39:14Z
Indexed on
2010/04/15
14:43 UTC
Read the original article
Hit count: 360
ehcache
|terracotta
Hey,
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?
Thank you!
© Stack Overflow or respective owner