mirror of https://github.com/apache/activemq.git
Added a little more debug logging to the InactivityMonitor because I suspect that
the schedular might not be triggering the read and write checks at the right time. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@602553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2984963912
commit
6f0dcac677
|
@ -46,13 +46,25 @@ public class InactivityMonitor extends TransportFilter {
|
|||
private final AtomicBoolean inReceive = new AtomicBoolean(false);
|
||||
|
||||
private final Runnable readChecker = new Runnable() {
|
||||
long lastRunTime;
|
||||
public void run() {
|
||||
long now = System.currentTimeMillis();
|
||||
if( lastRunTime != 0 && LOG.isDebugEnabled() ) {
|
||||
LOG.debug(""+(now-lastRunTime)+" ms elapsed since last read check.");
|
||||
}
|
||||
lastRunTime = now;
|
||||
readCheck();
|
||||
}
|
||||
};
|
||||
|
||||
private final Runnable writeChecker = new Runnable() {
|
||||
long lastRunTime;
|
||||
public void run() {
|
||||
long now = System.currentTimeMillis();
|
||||
if( lastRunTime != 0 && LOG.isDebugEnabled() ) {
|
||||
LOG.debug(""+(now-lastRunTime)+" ms elapsed since last read check.");
|
||||
}
|
||||
lastRunTime = now;
|
||||
writeCheck();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue