HHH-6827 correct timeout in BaseRegion

This commit is contained in:
Strong Liu 2011-11-21 20:04:41 +08:00
parent 17bf50226b
commit 8a800a1bc0
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ import org.hibernate.cache.spi.Region;
class BaseRegion implements Region {
protected final Map cache = new ConcurrentHashMap();
private final String name;
private static int timeout = Timestamper.ONE_MS * 60000; //60s
BaseRegion(String name) {
this.name = name;
@ -84,7 +85,7 @@ class BaseRegion implements Region {
@Override
public int getTimeout() {
return Timestamper.ONE_MS * 600000;
return timeout;
}
}