NO-JIRA Removing System.err style debug left by accident
This is non critical. The message is only used by Queue.pause ATM.
This commit is contained in:
parent
f126980a30
commit
9a52766e51
|
@ -248,8 +248,6 @@ public class QueueImpl extends CriticalComponentImpl implements Queue {
|
|||
|
||||
private final ReusableLatch deliveriesInTransit = new ReusableLatch(0);
|
||||
|
||||
private volatile boolean caused = false;
|
||||
|
||||
private final AtomicLong queueRateCheckTime = new AtomicLong(System.currentTimeMillis());
|
||||
|
||||
private final AtomicLong messagesAddedSnapshot = new AtomicLong(0);
|
||||
|
@ -766,11 +764,6 @@ public class QueueImpl extends CriticalComponentImpl implements Queue {
|
|||
*/
|
||||
private boolean flushDeliveriesInTransit() {
|
||||
try {
|
||||
|
||||
if (!deliveriesInTransit.await(100, TimeUnit.MILLISECONDS)) {
|
||||
caused = true;
|
||||
System.err.println("There are currently " + deliveriesInTransit.getCount() + " credits");
|
||||
}
|
||||
if (deliveriesInTransit.await(DELIVERY_TIMEOUT)) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue