Package com.couchbase.client.dcp.buffer
Class PersistedSeqnos
java.lang.Object
com.couchbase.client.dcp.buffer.PersistedSeqnos
For each partition, holds the persisted sequence number and vbucket UUID for the active and replicas.
Used for determining the highest sequence number that has been persisted across all nodes.
Thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmarkAsAbsent(com.couchbase.client.dcp.buffer.PartitionInstance absentInstance) voidreset(int numPartitions, int numReplicas) voidreset(DcpBucketConfig bucketConfig) toString()static PersistedSeqnosReturns a new empty instance that will not be usable until it is reset.longupdate(int partition, int slot, long vbuuid, long seqno) longupdate(com.couchbase.client.dcp.buffer.PartitionInstance partitionInstance, long vbuuid, long seqno) Updates the dataset with information about the given partition instance
-
Method Details
-
uninitialized
Returns a new empty instance that will not be usable until it is reset. -
update
public long update(com.couchbase.client.dcp.buffer.PartitionInstance partitionInstance, long vbuuid, long seqno) Updates the dataset with information about the given partition instance -
update
public long update(int partition, int slot, long vbuuid, long seqno) -
markAsAbsent
public void markAsAbsent(com.couchbase.client.dcp.buffer.PartitionInstance absentInstance) -
reset
-
reset
public void reset(int numPartitions, int numReplicas) -
toString
-