HHH-6827 correct timeout in BaseRegion
This commit is contained in:
parent
17bf50226b
commit
8a800a1bc0
|
@ -37,6 +37,7 @@ import org.hibernate.cache.spi.Region;
|
||||||
class BaseRegion implements Region {
|
class BaseRegion implements Region {
|
||||||
protected final Map cache = new ConcurrentHashMap();
|
protected final Map cache = new ConcurrentHashMap();
|
||||||
private final String name;
|
private final String name;
|
||||||
|
private static int timeout = Timestamper.ONE_MS * 60000; //60s
|
||||||
|
|
||||||
BaseRegion(String name) {
|
BaseRegion(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
@ -84,7 +85,7 @@ class BaseRegion implements Region {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getTimeout() {
|
public int getTimeout() {
|
||||||
return Timestamper.ONE_MS * 600000;
|
return timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue