public void closing() { run.set(false); quantum.release(10); pending.clear(); bundle.closeAcknowledger(producer); }
public Acknowledger(Bundle bundle) { this.bundle = bundle; consumer = new Thread(consumerAction()); consumer.setName(String.format("Consumer thread for Acknowledger[?<%s]", bundle.getId())); }