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 MessageAckListener
A listener for message ack when using AcknowledgeMode.AUTO.
Since:
2.4.6
Author:
Cao Weibo, Gary Russell
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onComplete(boolean success, long deliveryTag, Throwable cause)
    Listener callback.
  • Method Details

    • onComplete

      void onComplete(boolean success, long deliveryTag, @Nullable Throwable cause)
      Listener callback.
      Parameters:
      success - Whether ack succeed.
      deliveryTag - The deliveryTag of ack.
      cause - The cause of failed ack.