Class ReplicatedSubscriptionSnapshotCache
java.lang.Object
org.apache.pulsar.broker.service.persistent.ReplicatedSubscriptionSnapshotCache
Store the last N snapshots that were scanned by a particular subscription.
-
Constructor Summary
ConstructorDescriptionReplicatedSubscriptionSnapshotCache
(String subscription, int maxSnapshotToCache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewSnapshot
(org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshot snapshot) org.apache.pulsar.common.api.proto.ReplicatedSubscriptionsSnapshot
Signal that the mark-delete position on the subscription has been advanced.
-
Constructor Details
-
ReplicatedSubscriptionSnapshotCache
-
-
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.
-