Class StreamOffset

java.lang.Object
com.couchbase.client.dcp.highlevel.StreamOffset

public class StreamOffset extends Object
Position in a DCP stream for a particular vbucket.
  • Field Details

  • Constructor Details

    • StreamOffset

      public StreamOffset(long vbuuid, long seqno, SnapshotMarker snapshot, long collectionsManifestUid)
      Parameters:
      collectionsManifestUid - pass zero if client is not collections-aware or if no UID is available.
  • Method Details

    • getVbuuid

      public long getVbuuid()
    • getSeqno

      public long getSeqno()
      NOTE: Sequence numbers are unsigned, and must be compared using Long.compareUnsigned(long, long)
    • getSnapshot

      public SnapshotMarker getSnapshot()
    • getCollectionsManifestUid

      public long getCollectionsManifestUid()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • describe

      public static String describe(@Nullable StreamOffset offset)
      Returns the same info as toString(), but in a format readable by humans without special knowledge.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object