Interface AcknowledgementResultCallback<T>


public interface AcknowledgementResultCallback<T>
Provides actions to be executed after a message acknowledgement completes with either success or failure.
Since:
3.0
Author:
Tomaz Fernandes
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Execute an action if message acknowledgement fails.
    default void
    Execute an action after the messages are successfully acknowledged.
  • Method Details

    • onSuccess

      default void onSuccess(Collection<Message<T>> messages)
      Execute an action after the messages are successfully acknowledged.
      Parameters:
      messages - the messages.
    • onFailure

      default void onFailure(Collection<Message<T>> messages, Throwable t)
      Execute an action if message acknowledgement fails.
      Parameters:
      messages - the messages.
      t - the error thrown by the acknowledgement.