public void setMaxSize(final int iMaxSize) {
maxSize = iMaxSize;
}
public void startup() {
watchDogListener = Orient.instance().getMemoryWatchDog().addListener(new Listener() {
/**
* Auto reduce cache size of 50%
*/
public void memoryUsageLow(TYPE iType, final long usedMemory, final long maxMemory) {
if (iType == TYPE.JVM) {