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.
@FunctionalInterface public interface MessageAckListenerA listener for message ack when usingAcknowledgeMode.AUTO.- Since:
- 2.4.6
- Author:
- Cao Weibo, Gary Russell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonComplete(boolean success, long deliveryTag, java.lang.Throwable cause)Listener callback.
-
-
-
Method Detail
-
onComplete
void onComplete(boolean success, long deliveryTag, @Nullable java.lang.Throwable cause)Listener callback.- Parameters:
success- Whether ack succeed.deliveryTag- The deliveryTag of ack.cause- The cause of failed ack.
-
-