Class ReplicatedSubscriptionSnapshotCache

java.lang.Object
org.apache.pulsar.broker.service.persistent.ReplicatedSubscriptionSnapshotCache

public class ReplicatedSubscriptionSnapshotCache extends Object
Store the last N snapshots that were scanned by a particular subscription.
  • Constructor Details

    • ReplicatedSubscriptionSnapshotCache

      public ReplicatedSubscriptionSnapshotCache(String subscription, int maxSnapshotToCache)
  • Method Details

    • addNewSnapshot

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

      public org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshot advancedMarkDeletePosition(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.