give debug logging insight to the inactivity monitor negotiation, output local and remote infos

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1080560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2011-03-11 12:58:19 +00:00
parent 286c9d0020
commit 55b9954873
1 changed files with 6 additions and 0 deletions

View File

@ -327,9 +327,15 @@ public class InactivityMonitor extends TransportFilter {
configured = true;
} else if (localWireFormatInfo != null && remoteWireFormatInfo != null) {
if (!ignoreRemoteWireFormat) {
if (LOG.isDebugEnabled()) {
LOG.debug("Using min of local: " + localWireFormatInfo + " and remote: " + remoteWireFormatInfo);
}
readCheckTime = Math.min(localWireFormatInfo.getMaxInactivityDuration(), remoteWireFormatInfo.getMaxInactivityDuration());
initialDelayTime = Math.min(localWireFormatInfo.getMaxInactivityDurationInitalDelay(), remoteWireFormatInfo.getMaxInactivityDurationInitalDelay());
} else {
if (LOG.isDebugEnabled()) {
LOG.debug("Using local: " + localWireFormatInfo);
}
readCheckTime = localWireFormatInfo.getMaxInactivityDuration();
initialDelayTime = localWireFormatInfo.getMaxInactivityDurationInitalDelay();
}