added traces for enabling disabling gbc
This commit is contained in:
parent
9108a4de20
commit
d08bf8107f
2 changed files with 2 additions and 0 deletions
BIN
Zutil.jar
BIN
Zutil.jar
Binary file not shown.
|
|
@ -127,12 +127,14 @@ public class DBBeanSQLResultHandler<T> implements SQLResultHandler<T>{
|
|||
if( timer == null ){
|
||||
timer = new Timer( true ); // Run as daemon
|
||||
timer.schedule( new DBBeanGarbageCollector(), 10000, CACHE_TTL*2 );
|
||||
logger.info("Bean garbage collection daemon enabled");
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (timer != null) {
|
||||
timer.cancel();
|
||||
timer = null;
|
||||
logger.info("Bean garbage collection daemon disabled");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue