mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@652303 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b35bc797ec
commit
7a238556e3
|
@ -265,8 +265,8 @@ public class InactivityMonitor extends TransportFilter {
|
||||||
writeCheckTime = readCheckTime/3;
|
writeCheckTime = readCheckTime/3;
|
||||||
synchronized( InactivityMonitor.class ) {
|
synchronized( InactivityMonitor.class ) {
|
||||||
if( CHECKER_COUNTER == 0 ) {
|
if( CHECKER_COUNTER == 0 ) {
|
||||||
READ_CHECK_TIMER = new Timer("InactivityMonitor ReadCheck");
|
READ_CHECK_TIMER = new Timer("InactivityMonitor ReadCheck",true);
|
||||||
WRITE_CHECK_TIMER = new Timer("InactivityMonitor WriteCheck");
|
WRITE_CHECK_TIMER = new Timer("InactivityMonitor WriteCheck",true);
|
||||||
}
|
}
|
||||||
CHECKER_COUNTER++;
|
CHECKER_COUNTER++;
|
||||||
WRITE_CHECK_TIMER.scheduleAtFixedRate(writeCheckerTask, initialDelayTime,writeCheckTime);
|
WRITE_CHECK_TIMER.scheduleAtFixedRate(writeCheckerTask, initialDelayTime,writeCheckTime);
|
||||||
|
|
Loading…
Reference in New Issue