public class CompactedTopicImpl extends Object implements CompactedTopic
| Constructor and Description |
|---|
CompactedTopicImpl(BookKeeper bk) |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncReadEntriesOrWait(ManagedCursor cursor,
int numberOfEntriesToRead,
boolean isFirstRead,
AsyncCallbacks.ReadEntriesCallback callback,
Consumer consumer) |
CompletableFuture<Void> |
deleteCompactedLedger(long compactedLedgerId) |
Optional<CompactedTopicContext> |
getCompactedTopicContext()
Getter for CompactedTopicContext.
|
Optional<Position> |
getCompactionHorizon() |
CompletableFuture<CompactedTopicContext> |
newCompactedLedger(Position p,
long compactedLedgerId) |
CompletableFuture<Entry> |
readLastEntryOfCompactedLedger() |
public CompactedTopicImpl(BookKeeper bk)
public CompletableFuture<CompactedTopicContext> newCompactedLedger(Position p, long compactedLedgerId)
newCompactedLedger in interface CompactedTopicpublic CompletableFuture<Void> deleteCompactedLedger(long compactedLedgerId)
deleteCompactedLedger in interface CompactedTopicpublic void asyncReadEntriesOrWait(ManagedCursor cursor, int numberOfEntriesToRead, boolean isFirstRead, AsyncCallbacks.ReadEntriesCallback callback, Consumer consumer)
asyncReadEntriesOrWait in interface CompactedTopicpublic Optional<CompactedTopicContext> getCompactedTopicContext() throws ExecutionException, InterruptedException
ExecutionExceptionInterruptedExceptionpublic CompletableFuture<Entry> readLastEntryOfCompactedLedger()
readLastEntryOfCompactedLedger in interface CompactedTopicpublic Optional<Position> getCompactionHorizon()
getCompactionHorizon in interface CompactedTopicCopyright © 2017–2022 Apache Software Foundation. All rights reserved.