Interface StreamingDispatcher

All Superinterfaces:
Dispatcher
All Known Implementing Classes:
PersistentStreamingDispatcherMultipleConsumers, PersistentStreamingDispatcherSingleActiveConsumer

@Unstable public interface StreamingDispatcher extends Dispatcher
A Dispatcher that'll use StreamingEntryReader to read entries from ManagedLedger.
  • Method Details

    • readEntryComplete

      void readEntryComplete(org.apache.bookkeeper.mledger.Entry entry, PendingReadEntryRequest ctx)
      Notify dispatcher issued read entry request has complete.
      Parameters:
      entry - Entry read.
      ctx - Context passed in when issuing read entries request.
    • canReadMoreEntries

      void canReadMoreEntries(boolean withBackoff)
      Notify dispatcher can issue next read request.
    • notifyConsumersEndOfTopic

      void notifyConsumersEndOfTopic()
      Notify dispatcher to inform consumers reached end of topic.
    • getName

      String getName()
      Returns:
      Name of the dispatcher.