Interface MessageAckListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A listener for message ack when using
AcknowledgeMode.AUTO
.- Since:
- 2.4.6
- Author:
- Cao Weibo, Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onComplete
(boolean success, long deliveryTag, Throwable cause) Listener callback.
-
Method Details
-
onComplete
Listener callback.- Parameters:
success
- Whether ack succeed.deliveryTag
- The deliveryTag of ack.cause
- The cause of failed ack.
-