Class ReplicatedSubscriptionSnapshotCache


  • public class ReplicatedSubscriptionSnapshotCache
    extends java.lang.Object
    Store the last N snapshots that were scanned by a particular subscription.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addNewSnapshot​(org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshot snapshot)  
      org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshot advancedMarkDeletePosition​(org.apache.bookkeeper.mledger.impl.PositionImpl pos)
      Signal that the mark-delete position on the subscription has been advanced.
      • Methods inherited from class java.lang.Object

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

      • ReplicatedSubscriptionSnapshotCache

        public ReplicatedSubscriptionSnapshotCache​(java.lang.String subscription,
                                                   int maxSnapshotToCache)
    • Method Detail

      • addNewSnapshot

        public void addNewSnapshot​(org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshot snapshot)
      • advancedMarkDeletePosition

        public org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshot advancedMarkDeletePosition​(org.apache.bookkeeper.mledger.impl.PositionImpl pos)
        Signal that the mark-delete position on the subscription has been advanced. If there is a snapshot that correspond to this position, it will returned, other it will return null.