Package com.couchbase.client.dcp.message
Enum DcpOpenStreamRequest
- All Implemented Interfaces:
Serializable
,Comparable<DcpOpenStreamRequest>
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
endSeqno
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoEnd) static Set
<StreamFlag> flags
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static void
flags
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int flags) static int
flagsAsInt
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static void
init
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, Set<StreamFlag> flags, int vbucket) Initialize the buffer with all the values needed.static boolean
is
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) If the given buffer is aDcpOpenStreamRequest
message.static void
opaque
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int opaque) static void
snapshotEndSeqno
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoEnd) static void
snapshotStartSeqno
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoStart) static void
startSeqno
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoStart) static DcpOpenStreamRequest
Returns the enum constant of this type with the specified name.static DcpOpenStreamRequest[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static void
vbuuid
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long uuid)
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
is
public static boolean is(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) If the given buffer is aDcpOpenStreamRequest
message. -
init
public static void init(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, Set<StreamFlag> flags, int vbucket) Initialize the buffer with all the values needed.Initializes the complete extras needed with 0 and can be overridden through the setters available. If no setters are used this message is effectively a backfill for the given vbucket.
-
startSeqno
public static void startSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoStart) -
endSeqno
public static void endSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoEnd) -
vbuuid
public static void vbuuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long uuid) -
snapshotStartSeqno
public static void snapshotStartSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoStart) -
snapshotEndSeqno
public static void snapshotEndSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoEnd) -
opaque
public static void opaque(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int opaque) -
flagsAsInt
public static int flagsAsInt(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) -
flags
-
flags
public static void flags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int flags)
-