Fixing bug with qdox.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@630050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2008-02-21 23:42:00 +00:00
parent b141d21dce
commit 3d33c0e51a
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class InactivityMonitor extends TransportFilter {
// read checks to be small..
// If less than 90% of the read check Time elapsed then abort this readcheck.
if( elapsed < (readCheckTime * 9 / 10) ) {
if( !allowReadCheck(elapsed) ) { // FUNKY qdox bug does not allow me to inline this expression.
LOG.debug("Aborting read check.. Not enough time elapsed since last read check.");
return;
}
@ -85,6 +85,10 @@ public class InactivityMonitor extends TransportFilter {
}
};
private boolean allowReadCheck(long elapsed) {
return elapsed > (readCheckTime * 9 / 10);
}
private final Runnable writeChecker = new Runnable() {
long lastRunTime;
public void run() {