public enum DcpOpenStreamRequest extends Enum<DcpOpenStreamRequest>
| Modifier and Type | Method and Description |
|---|---|
static void |
activeVbucketOnly(io.netty.buffer.ByteBuf buffer)
Set
StreamFlags.ACTIVE_VB_ONLY flag for the stream. |
static void |
diskOnly(io.netty.buffer.ByteBuf buffer)
Set
StreamFlags.DISK_ONLY flag for the stream. |
static void |
endSeqno(io.netty.buffer.ByteBuf buffer,
long seqnoEnd) |
static int |
flags(io.netty.buffer.ByteBuf buffer) |
static void |
flags(io.netty.buffer.ByteBuf buffer,
int flags) |
static void |
init(io.netty.buffer.ByteBuf buffer,
Set<StreamFlags> flags,
int vbucket)
Initialize the buffer with all the values needed.
|
static boolean |
is(io.netty.buffer.ByteBuf buffer)
If the given buffer is a
DcpOpenStreamRequest message. |
static void |
latest(io.netty.buffer.ByteBuf buffer)
Set
StreamFlags.LATEST flag for the stream. |
static void |
noValue(io.netty.buffer.ByteBuf buffer)
Set
StreamFlags.NO_VALUE flag for the stream. |
static void |
opaque(io.netty.buffer.ByteBuf buffer,
int opaque) |
static void |
snapshotEndSeqno(io.netty.buffer.ByteBuf buffer,
long snapshotSeqnoEnd) |
static void |
snapshotStartSeqno(io.netty.buffer.ByteBuf buffer,
long snapshotSeqnoStart) |
static void |
startSeqno(io.netty.buffer.ByteBuf buffer,
long seqnoStart) |
static void |
strictVbucketUuid(io.netty.buffer.ByteBuf buffer)
Set
StreamFlags.STRICT_VB_UUID flag for the stream. |
static void |
takeover(io.netty.buffer.ByteBuf buffer)
Set
StreamFlags.TAKEOVER flag for the stream. |
static DcpOpenStreamRequest |
valueOf(String name)
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(io.netty.buffer.ByteBuf buffer,
long uuid) |
public static DcpOpenStreamRequest[] values()
for (DcpOpenStreamRequest c : DcpOpenStreamRequest.values()) System.out.println(c);
public static DcpOpenStreamRequest valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static boolean is(io.netty.buffer.ByteBuf buffer)
DcpOpenStreamRequest message.public static void init(io.netty.buffer.ByteBuf buffer,
Set<StreamFlags> flags,
int vbucket)
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.
public static void startSeqno(io.netty.buffer.ByteBuf buffer,
long seqnoStart)
public static void endSeqno(io.netty.buffer.ByteBuf buffer,
long seqnoEnd)
public static void vbuuid(io.netty.buffer.ByteBuf buffer,
long uuid)
public static void snapshotStartSeqno(io.netty.buffer.ByteBuf buffer,
long snapshotSeqnoStart)
public static void snapshotEndSeqno(io.netty.buffer.ByteBuf buffer,
long snapshotSeqnoEnd)
public static void opaque(io.netty.buffer.ByteBuf buffer,
int opaque)
public static int flags(io.netty.buffer.ByteBuf buffer)
public static void flags(io.netty.buffer.ByteBuf buffer,
int flags)
public static void takeover(io.netty.buffer.ByteBuf buffer)
StreamFlags.TAKEOVER flag for the stream.public static void diskOnly(io.netty.buffer.ByteBuf buffer)
StreamFlags.DISK_ONLY flag for the stream.public static void latest(io.netty.buffer.ByteBuf buffer)
StreamFlags.LATEST flag for the stream.public static void noValue(io.netty.buffer.ByteBuf buffer)
StreamFlags.NO_VALUE flag for the stream.public static void activeVbucketOnly(io.netty.buffer.ByteBuf buffer)
StreamFlags.ACTIVE_VB_ONLY flag for the stream.public static void strictVbucketUuid(io.netty.buffer.ByteBuf buffer)
StreamFlags.STRICT_VB_UUID flag for the stream.Copyright © 2021 Couchbase, Inc.. All rights reserved.