Class CompactedTopicImpl

    • Constructor Detail

      • CompactedTopicImpl

        public CompactedTopicImpl​(org.apache.bookkeeper.client.BookKeeper bk)
    • Method Detail

      • deleteCompactedLedger

        public java.util.concurrent.CompletableFuture<java.lang.Void> deleteCompactedLedger​(long compactedLedgerId)
        Specified by:
        deleteCompactedLedger in interface CompactedTopic
      • asyncReadEntriesOrWait

        public void asyncReadEntriesOrWait​(org.apache.bookkeeper.mledger.ManagedCursor cursor,
                                           int numberOfEntriesToRead,
                                           boolean isFirstRead,
                                           org.apache.bookkeeper.mledger.AsyncCallbacks.ReadEntriesCallback callback,
                                           Consumer consumer)
        Specified by:
        asyncReadEntriesOrWait in interface CompactedTopic
      • getCompactedTopicContext

        public java.util.Optional<CompactedTopicContext> getCompactedTopicContext()
                                                                           throws java.util.concurrent.ExecutionException,
                                                                                  java.lang.InterruptedException
        Getter for CompactedTopicContext.
        Returns:
        CompactedTopicContext
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • readLastEntryOfCompactedLedger

        public java.util.concurrent.CompletableFuture<org.apache.bookkeeper.mledger.Entry> readLastEntryOfCompactedLedger()
        Specified by:
        readLastEntryOfCompactedLedger in interface CompactedTopic
      • getCompactionHorizon

        public java.util.Optional<org.apache.bookkeeper.mledger.Position> getCompactionHorizon()
        Specified by:
        getCompactionHorizon in interface CompactedTopic