Class MessageRedeliveryController


  • @NotThreadSafe
    public class MessageRedeliveryController
    extends java.lang.Object
    The MessageRedeliveryController is a non-thread-safe container for maintaining the redelivery messages.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(long ledgerId, long entryId)  
      void add​(long ledgerId, long entryId, long stickyKeyHash)  
      void clear()  
      boolean containsStickyKeyHashes​(java.util.Set<java.lang.Integer> stickyKeyHashes)  
      java.util.Set<org.apache.bookkeeper.mledger.impl.PositionImpl> getMessagesToReplayNow​(int maxMessagesToRead)  
      boolean isEmpty()  
      void remove​(long ledgerId, long entryId)  
      void removeAllUpTo​(long markDeleteLedgerId, long markDeleteEntryId)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MessageRedeliveryController

        public MessageRedeliveryController​(boolean allowOutOfOrderDelivery)
    • Method Detail

      • add

        public void add​(long ledgerId,
                        long entryId)
      • add

        public void add​(long ledgerId,
                        long entryId,
                        long stickyKeyHash)
      • remove

        public void remove​(long ledgerId,
                           long entryId)
      • removeAllUpTo

        public void removeAllUpTo​(long markDeleteLedgerId,
                                  long markDeleteEntryId)
      • isEmpty

        public boolean isEmpty()
      • clear

        public void clear()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • containsStickyKeyHashes

        public boolean containsStickyKeyHashes​(java.util.Set<java.lang.Integer> stickyKeyHashes)
      • getMessagesToReplayNow

        public java.util.Set<org.apache.bookkeeper.mledger.impl.PositionImpl> getMessagesToReplayNow​(int maxMessagesToRead)