Class PersistentMessageFinder

java.lang.Object
org.apache.pulsar.broker.service.persistent.PersistentMessageFinder
All Implemented Interfaces:
org.apache.bookkeeper.mledger.AsyncCallbacks.FindEntryCallback

public class PersistentMessageFinder extends Object implements org.apache.bookkeeper.mledger.AsyncCallbacks.FindEntryCallback
given a timestamp find the first message (position) (published) at or before the timestamp.
  • Constructor Details

    • PersistentMessageFinder

      public PersistentMessageFinder(String topicName, org.apache.bookkeeper.mledger.ManagedCursor cursor)
  • Method Details

    • findMessages

      public void findMessages(long timestamp, org.apache.bookkeeper.mledger.AsyncCallbacks.FindEntryCallback callback)
    • findEntryComplete

      public void findEntryComplete(org.apache.bookkeeper.mledger.Position position, Object ctx)
      Specified by:
      findEntryComplete in interface org.apache.bookkeeper.mledger.AsyncCallbacks.FindEntryCallback
    • findEntryFailed

      public void findEntryFailed(org.apache.bookkeeper.mledger.ManagedLedgerException exception, Optional<org.apache.bookkeeper.mledger.Position> failedReadPosition, Object ctx)
      Specified by:
      findEntryFailed in interface org.apache.bookkeeper.mledger.AsyncCallbacks.FindEntryCallback