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 Summary
Modifier and TypeMethodDescriptionvoid
Acknowledge all messages from the batch.void
acknowledge
(Collection<Message<T>> messagesToAcknowledge) Acknowledge the provided messages.Asynchronously acknowledge all messages from the batch.acknowledgeAsync
(Collection<Message<T>> messagesToAcknowledge) Asynchronously acknowledge the provided messages.
-
Method Details
-
acknowledge
void acknowledge()Acknowledge all messages from the batch. -
acknowledgeAsync
CompletableFuture<Void> acknowledgeAsync()Asynchronously acknowledge all messages from the batch. -
acknowledge
Acknowledge the provided messages. -
acknowledgeAsync
Asynchronously acknowledge the provided messages.
-