Package org.acemq.amqp.api
Interface AckAwareHandler<T>
- Type Parameters:
T- decoded payload type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handles one message and states the outcome explicitly.
Preferable to MessageHandler when the decision is data rather than an error: a
handler that wants to retry after a broker-supplied delay, or to dead-letter with a reason
without manufacturing an exception, says so directly.
-
Method Summary
-
Method Details
-
handle
- Parameters:
message- the delivery to handle- Returns:
- what should happen to the delivery; must not be
null
-