| Previously, Hibernate used to support this net.sf.ehcache.hibernate.cache_lock_timeout which controls how much time a given 2nd-level cache entry is allowed to be locked logically by the READ_WRITE cache concurrency strategy. You can see the configuration in use on this old ehcache implementation. Nowadays, the RegionFactory defines a default timeout:
default long getTimeout() {
return 60000;
}
and the AbstractRegionFactory overrides it to:
@Override
public long getTimeout() {
return SimpleTimestamper.timeOut();
}
which is implemented like this:
public static int timeOut() {
return (int) TimeUnit.SECONDS.toMillis( 60 ) * ONE_MS;
}
So, basically, there is no way to change this value using the Hibernate configurations. |