Class ReplicatedSubscriptionSnapshotCache
- java.lang.Object
-
- org.apache.pulsar.broker.service.persistent.ReplicatedSubscriptionSnapshotCache
-
public class ReplicatedSubscriptionSnapshotCache extends java.lang.ObjectStore the last N snapshots that were scanned by a particular subscription.
-
-
Constructor Summary
Constructors Constructor Description ReplicatedSubscriptionSnapshotCache(java.lang.String subscription, int maxSnapshotToCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewSnapshot(org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshot snapshot)org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshotadvancedMarkDeletePosition(org.apache.bookkeeper.mledger.impl.PositionImpl pos)Signal that the mark-delete position on the subscription has been advanced.
-
-
-
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.
-
-