mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@420872 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0e91a73c61
commit
1ea430e557
|
@ -71,19 +71,19 @@ public class InactivityMonitor extends TransportFilter {
|
|||
|
||||
private void writeCheck() {
|
||||
if( inSend.get() ) {
|
||||
log.debug("A send is in progress");
|
||||
log.trace("A send is in progress");
|
||||
return;
|
||||
}
|
||||
|
||||
if( !commandSent.get() ) {
|
||||
log.debug("No message sent since last write check, sending a KeepAliveInfo");
|
||||
log.trace("No message sent since last write check, sending a KeepAliveInfo");
|
||||
try {
|
||||
next.oneway(new KeepAliveInfo());
|
||||
} catch (IOException e) {
|
||||
onException(e);
|
||||
}
|
||||
} else {
|
||||
log.debug("Message sent since last write check, resetting flag");
|
||||
log.trace("Message sent since last write check, resetting flag");
|
||||
}
|
||||
|
||||
commandSent.set(false);
|
||||
|
@ -92,15 +92,15 @@ public class InactivityMonitor extends TransportFilter {
|
|||
|
||||
private void readCheck() {
|
||||
if( inReceive.get() ) {
|
||||
log.debug("A receive is in progress");
|
||||
log.trace("A receive is in progress");
|
||||
return;
|
||||
}
|
||||
|
||||
if( !commandReceived.get() ) {
|
||||
log.debug("No message received since last read check! ");
|
||||
log.debug("No message received since last read check for " + toString() + "! Throwing InactivityIOException.");
|
||||
onException(new InactivityIOException("Channel was inactive for too long."));
|
||||
} else {
|
||||
log.debug("Message received since last read check, resetting flag: ");
|
||||
log.trace("Message received since last read check, resetting flag: ");
|
||||
}
|
||||
|
||||
commandReceived.set(false);
|
||||
|
|
|
@ -194,8 +194,8 @@ public class FailoverTransport implements CompositeTransport {
|
|||
}
|
||||
|
||||
if(!disposed){
|
||||
if( log.isTraceEnabled() )
|
||||
log.trace("Waiting "+reconnectDelay+" ms before attempting connection. ");
|
||||
|
||||
log.debug("Waiting "+reconnectDelay+" ms before attempting connection. ");
|
||||
synchronized(sleepMutex){
|
||||
try{
|
||||
sleepMutex.wait(reconnectDelay);
|
||||
|
@ -339,7 +339,7 @@ public class FailoverTransport implements CompositeTransport {
|
|||
|
||||
// Wait for transport to be connected.
|
||||
while (connectedTransport == null && !disposed && connectionFailure==null ) {
|
||||
log.debug("Waiting for transport to reconnect.");
|
||||
log.trace("Waiting for transport to reconnect.");
|
||||
try {
|
||||
reconnectMutex.wait(1000);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue