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() {
|
private void writeCheck() {
|
||||||
if( inSend.get() ) {
|
if( inSend.get() ) {
|
||||||
log.debug("A send is in progress");
|
log.trace("A send is in progress");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !commandSent.get() ) {
|
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 {
|
try {
|
||||||
next.oneway(new KeepAliveInfo());
|
next.oneway(new KeepAliveInfo());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
onException(e);
|
onException(e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.debug("Message sent since last write check, resetting flag");
|
log.trace("Message sent since last write check, resetting flag");
|
||||||
}
|
}
|
||||||
|
|
||||||
commandSent.set(false);
|
commandSent.set(false);
|
||||||
|
@ -92,15 +92,15 @@ public class InactivityMonitor extends TransportFilter {
|
||||||
|
|
||||||
private void readCheck() {
|
private void readCheck() {
|
||||||
if( inReceive.get() ) {
|
if( inReceive.get() ) {
|
||||||
log.debug("A receive is in progress");
|
log.trace("A receive is in progress");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !commandReceived.get() ) {
|
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."));
|
onException(new InactivityIOException("Channel was inactive for too long."));
|
||||||
} else {
|
} else {
|
||||||
log.debug("Message received since last read check, resetting flag: ");
|
log.trace("Message received since last read check, resetting flag: ");
|
||||||
}
|
}
|
||||||
|
|
||||||
commandReceived.set(false);
|
commandReceived.set(false);
|
||||||
|
|
|
@ -194,8 +194,8 @@ public class FailoverTransport implements CompositeTransport {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!disposed){
|
if(!disposed){
|
||||||
if( log.isTraceEnabled() )
|
|
||||||
log.trace("Waiting "+reconnectDelay+" ms before attempting connection. ");
|
log.debug("Waiting "+reconnectDelay+" ms before attempting connection. ");
|
||||||
synchronized(sleepMutex){
|
synchronized(sleepMutex){
|
||||||
try{
|
try{
|
||||||
sleepMutex.wait(reconnectDelay);
|
sleepMutex.wait(reconnectDelay);
|
||||||
|
@ -339,7 +339,7 @@ public class FailoverTransport implements CompositeTransport {
|
||||||
|
|
||||||
// Wait for transport to be connected.
|
// Wait for transport to be connected.
|
||||||
while (connectedTransport == null && !disposed && connectionFailure==null ) {
|
while (connectedTransport == null && !disposed && connectionFailure==null ) {
|
||||||
log.debug("Waiting for transport to reconnect.");
|
log.trace("Waiting for transport to reconnect.");
|
||||||
try {
|
try {
|
||||||
reconnectMutex.wait(1000);
|
reconnectMutex.wait(1000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue