public enum DcpOpenConnectionRequest extends Enum<DcpOpenConnectionRequest>
| Modifier and Type | Method and Description |
|---|---|
static io.netty.buffer.ByteBuf |
connectionName(io.netty.buffer.ByteBuf buffer)
Returns the connection name (a slice out of the original buffer).
|
static void |
connectionName(io.netty.buffer.ByteBuf buffer,
String connectionName)
Set the connection name on the buffer.
|
static void |
init(io.netty.buffer.ByteBuf buffer,
Set<OpenConnectionFlag> flags)
Initialize the buffer with all the values needed.
|
static boolean |
is(io.netty.buffer.ByteBuf buffer)
If the given buffer is a
DcpOpenConnectionRequest message. |
static DcpOpenConnectionRequest |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DcpOpenConnectionRequest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static DcpOpenConnectionRequest[] values()
for (DcpOpenConnectionRequest c : DcpOpenConnectionRequest.values()) System.out.println(c);
public static DcpOpenConnectionRequest 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)
DcpOpenConnectionRequest message.public static void init(io.netty.buffer.ByteBuf buffer,
Set<OpenConnectionFlag> flags)
Note that OpenConnectionFlag.PRODUCER flag is always set
in addition to any flags passed in.
public static void connectionName(io.netty.buffer.ByteBuf buffer,
String connectionName)
public static io.netty.buffer.ByteBuf connectionName(io.netty.buffer.ByteBuf buffer)
Copyright © 2021 Couchbase, Inc.. All rights reserved.