Package com.couchbase.client.dcp.message
Enum Class DcpOpenStreamRequest
- All Implemented Interfaces:
Serializable,Comparable<DcpOpenStreamRequest>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidactiveVbucketOnly(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.ACTIVE_VB_ONLYflag for the stream.static voiddiskOnly(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.DISK_ONLYflag for the stream.static voidendSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoEnd) static intflags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static voidflags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int flags) static voidinit(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, Set<StreamFlags> flags, int vbucket) Initialize the buffer with all the values needed.static booleanis(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) If the given buffer is aDcpOpenStreamRequestmessage.static voidlatest(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.LATESTflag for the stream.static voidnoValue(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.NO_VALUEflag for the stream.static voidopaque(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int opaque) static voidsnapshotEndSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoEnd) static voidsnapshotStartSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoStart) static voidstartSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoStart) static voidstrictVbucketUuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.STRICT_VB_UUIDflag for the stream.static voidtakeover(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.TAKEOVERflag for the stream.static DcpOpenStreamRequestReturns the enum constant of this class with the specified name.static DcpOpenStreamRequest[]values()Returns an array containing the constants of this enum class, in the order they are declared.static voidvbuuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long uuid)
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 aDcpOpenStreamRequestmessage. -
init
public static void init(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, Set<StreamFlags> 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) -
flags
public static int flags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) -
flags
public static void flags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int flags) -
takeover
public static void takeover(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.TAKEOVERflag for the stream. -
diskOnly
public static void diskOnly(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.DISK_ONLYflag for the stream. -
latest
public static void latest(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.LATESTflag for the stream. -
noValue
public static void noValue(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.NO_VALUEflag for the stream. -
activeVbucketOnly
public static void activeVbucketOnly(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.ACTIVE_VB_ONLYflag for the stream. -
strictVbucketUuid
public static void strictVbucketUuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) SetStreamFlags.STRICT_VB_UUIDflag for the stream.
-