added traces for enabling disabling gbc

This commit is contained in:
Ziver Koc 2016-01-29 14:36:43 +01:00
parent 9108a4de20
commit d08bf8107f
2 changed files with 2 additions and 0 deletions

BIN
Zutil.jar

Binary file not shown.

View file

@ -127,12 +127,14 @@ public class DBBeanSQLResultHandler<T> implements SQLResultHandler<T>{
if( timer == null ){ if( timer == null ){
timer = new Timer( true ); // Run as daemon timer = new Timer( true ); // Run as daemon
timer.schedule( new DBBeanGarbageCollector(), 10000, CACHE_TTL*2 ); timer.schedule( new DBBeanGarbageCollector(), 10000, CACHE_TTL*2 );
logger.info("Bean garbage collection daemon enabled");
} }
} }
else { else {
if (timer != null) { if (timer != null) {
timer.cancel(); timer.cancel();
timer = null; timer = null;
logger.info("Bean garbage collection daemon disabled");
} }
} }
} }