public class CompactedTopicImpl extends Object implements CompactedTopic
| Modifier and Type | Class and Description |
|---|---|
static class |
CompactedTopicImpl.CompactedTopicContext |
| Constructor and Description |
|---|
CompactedTopicImpl(BookKeeper bk) |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncReadEntriesOrWait(ManagedCursor cursor,
int numberOfEntriesToRead,
AsyncCallbacks.ReadEntriesCallback callback,
Object ctx) |
Optional<CompactedTopicImpl.CompactedTopicContext> |
getCompactedTopicContext()
Getter for CompactedTopicContext.
|
CompletableFuture<?> |
newCompactedLedger(Position p,
long compactedLedgerId) |
public CompactedTopicImpl(BookKeeper bk)
public CompletableFuture<?> newCompactedLedger(Position p, long compactedLedgerId)
newCompactedLedger in interface CompactedTopicpublic void asyncReadEntriesOrWait(ManagedCursor cursor, int numberOfEntriesToRead, AsyncCallbacks.ReadEntriesCallback callback, Object ctx)
asyncReadEntriesOrWait in interface CompactedTopicpublic Optional<CompactedTopicImpl.CompactedTopicContext> getCompactedTopicContext() throws ExecutionException, InterruptedException
ExecutionExceptionInterruptedExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.