Class PersistedSeqnos

java.lang.Object
com.couchbase.client.dcp.buffer.PersistedSeqnos

public class PersistedSeqnos extends Object
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 Type
    Method
    Description
    void
    markAsAbsent(com.couchbase.client.dcp.buffer.PartitionInstance absentInstance)
     
    void
    reset(int numPartitions, int numReplicas)
     
    void
    reset(DcpBucketConfig bucketConfig)
     
     
    Returns a new empty instance that will not be usable until it is reset.
    long
    update(int partition, int slot, long vbuuid, long seqno)
     
    long
    update(com.couchbase.client.dcp.buffer.PartitionInstance partitionInstance, long vbuuid, long seqno)
    Updates the dataset with information about the given partition instance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • uninitialized

      public static PersistedSeqnos 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

      public void reset(DcpBucketConfig bucketConfig)
    • reset

      public void reset(int numPartitions, int numReplicas)
    • toString

      public String toString()
      Overrides:
      toString in class Object