Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ CompletableFuture<Void> reconsumeLaterCumulativeAsync(Message<?> message,

/**
* Reset the subscription associated with this consumer to a specific message id.
* <p>
* If there is already a seek operation in progress, the method will log a warning and
* return a future completed exceptionally.
*
* <p>The message id can either be a specific message or represent the first or last messages in the topic.
* <ul>
Expand All @@ -483,6 +486,9 @@ CompletableFuture<Void> reconsumeLaterCumulativeAsync(Message<?> message,

/**
* Reset the subscription associated with this consumer to a specific message publish time.
* <p>
* If there is already a seek operation in progress, the method will log a warning and
* return a future completed exceptionally.
*
* @param timestamp
* the message publish time where to reposition the subscription
Expand All @@ -493,6 +499,10 @@ CompletableFuture<Void> reconsumeLaterCumulativeAsync(Message<?> message,
/**
* Reset the subscription associated with this consumer to a specific message ID or message publish time.
* <p>
* If there is already a seek operation in progress, the method will log a warning and
* return a future completed exceptionally.
*
* <p>
* The Function input is topic+partition. It returns only timestamp or MessageId.
* <p>
* The return value is the seek position/timestamp of the current partition.
Expand Down Expand Up @@ -523,11 +533,17 @@ CompletableFuture<Void> reconsumeLaterCumulativeAsync(Message<?> message,

/**
* The asynchronous version of {@link Consumer#seek(MessageId)}.
* <p>
* If there is already a seek operation in progress, the method will log a warning and
* return a future completed exceptionally.
*/
CompletableFuture<Void> seekAsync(MessageId messageId);

/**
* Reset the subscription associated with this consumer to a specific message publish time.
* <p>
* If there is already a seek operation in progress, the method will log a warning and
* return a future completed exceptionally.
*
* @param timestamp
* the message publish time where to reposition the subscription
Expand Down