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 Summary
ConstructorsConstructorDescriptionPersistentMessageFinder(String topicName, org.apache.bookkeeper.mledger.ManagedCursor cursor) -
Method Summary
Modifier and TypeMethodDescriptionvoidfindEntryComplete(org.apache.bookkeeper.mledger.Position position, Object ctx) voidfindEntryFailed(org.apache.bookkeeper.mledger.ManagedLedgerException exception, Optional<org.apache.bookkeeper.mledger.Position> failedReadPosition, Object ctx) voidfindMessages(long timestamp, org.apache.bookkeeper.mledger.AsyncCallbacks.FindEntryCallback callback)
-
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
- Specified by:
findEntryCompletein interfaceorg.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:
findEntryFailedin interfaceorg.apache.bookkeeper.mledger.AsyncCallbacks.FindEntryCallback
-