Class StreamOffset
java.lang.Object
com.couchbase.client.dcp.highlevel.StreamOffset
Position in a DCP stream for a particular vbucket.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStreamOffset(long vbuuid, long seqno, SnapshotMarker snapshot, long collectionsManifestUid) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdescribe(StreamOffset offset) Returns the same info as toString(), but in a format readable by humans without special knowledge.booleanlonglonggetSeqno()NOTE: Sequence numbers are unsigned, and must be compared usingLong.compareUnsigned(long, long)longinthashCode()toString()
-
Field Details
-
ZERO
-
-
Constructor Details
-
StreamOffset
- 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 usingLong.compareUnsigned(long, long) -
getSnapshot
-
getCollectionsManifestUid
public long getCollectionsManifestUid() -
toString
-
describe
Returns the same info as toString(), but in a format readable by humans without special knowledge. -
equals
-
hashCode
public int hashCode()
-