Added noOp check to QueuedFtpClientPool

removed tracing from PollableFileSource
This commit is contained in:
Iwein Fuld
2008-09-14 12:31:16 +00:00
parent 82574606e1
commit a4daf1c0f7
4 changed files with 78 additions and 59 deletions

View File

@@ -82,7 +82,6 @@ public class PollableFileSource implements PollableSource<File>, MessageDelivery
}
public Message<File> receive() throws MessagingException {
traceState();
refreshQueue();
Message<File> message = null;
File file = toBeReceived.poll();
@@ -93,7 +92,6 @@ public class PollableFileSource implements PollableSource<File>, MessageDelivery
logger.info("Created message: [" + message + "]");
}
}
traceState();
return message;
}
@@ -127,13 +125,4 @@ public class PollableFileSource implements PollableSource<File>, MessageDelivery
logger.debug("Sent: " + sentMessage);
}
}
/*
* utility method to trace the stateful collections of this instance.
*/
private void traceState() {
if (logger.isTraceEnabled()) {
logger.trace("Files to be received: [" + toBeReceived + "]");
}
}
}