Package org.acemq.amqp.transport
Interface Acknowledger
public interface Acknowledger
Settles one delivery.
Exactly one method must be called for each delivery. A transport is entitled to treat a delivery that is never settled as a leak, because to the broker it is one: the message stays unacknowledged and occupies a prefetch slot until the connection drops.
-
Method Summary
-
Method Details
-
accept
void accept()Acknowledges the message so the broker discards it. -
reject
void reject(boolean requeue) Rejects the message.- Parameters:
requeue-trueto return it for another consumer,falseto let the broker dead-letter or drop it
-