Interface BatchAcknowledgement<T>


public interface BatchAcknowledgement<T>
Enables acknowledging messages for ListenerMode.BATCH. Either the entire batch or a partial batch can be acknowledged.
Since:
3.0
Author:
Tomaz Fernandes
See Also:
  • Method Details

    • acknowledge

      void acknowledge()
      Acknowledge all messages from the batch.
    • acknowledgeAsync

      CompletableFuture<Void> acknowledgeAsync()
      Asynchronously acknowledge all messages from the batch.
    • acknowledge

      void acknowledge(Collection<Message<T>> messagesToAcknowledge)
      Acknowledge the provided messages.
    • acknowledgeAsync

      CompletableFuture<Void> acknowledgeAsync(Collection<Message<T>> messagesToAcknowledge)
      Asynchronously acknowledge the provided messages.