-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: implement `FiniteRecordsStorage` interface in Pulsar * Make `PulsarRecordsStorage` implement `FiniteRecordsStorage`
- Loading branch information
Showing
3 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...sar-records-storage/src/main/java/org/apache/pulsar/client/impl/ConsumerImplAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.apache.pulsar.client.impl; | ||
|
||
import org.apache.pulsar.client.api.Consumer; | ||
import org.apache.pulsar.client.api.MessageId; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class ConsumerImplAccessor { | ||
|
||
public static CompletableFuture<MessageId> getLastMessageIdAsync(Consumer<?> consumer) { | ||
return ((ConsumerImpl<?>) consumer).getLastMessageIdAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters