/** * helper method that returns current state of data structure used to track acks for batch messages * * @return true if all batch messages have been acknowledged */ public boolean isBatchingAckTrackerEmpty() { boolean state = true; for (Consumer consumer : consumers) { state &= ((ConsumerImpl) consumer).isBatchingAckTrackerEmpty(); } return state; }