Package com.couchbase.client.dcp.message
Enum DcpSetVbucketStateMessage
java.lang.Object
java.lang.Enum<DcpSetVbucketStateMessage>
com.couchbase.client.dcp.message.DcpSetVbucketStateMessage
- All Implemented Interfaces:
Serializable
,Comparable<DcpSetVbucketStateMessage>
This message is used during the VBucket takeover process to hand off ownership of a VBucket between two nodes.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
active
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static boolean
dead
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static int
flags
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static void
init
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, DcpSetVbucketStateMessage.State state) static boolean
is
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static boolean
pending
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static boolean
replica
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) state
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static void
state
(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, DcpSetVbucketStateMessage.State state) static DcpSetVbucketStateMessage
Returns the enum constant of this type with the specified name.static DcpSetVbucketStateMessage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
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) -
flags
public static int flags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) -
active
public static boolean active(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) -
replica
public static boolean replica(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) -
pending
public static boolean pending(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) -
dead
public static boolean dead(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) -
init
public static void init(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, DcpSetVbucketStateMessage.State state) -
state
public static void state(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, DcpSetVbucketStateMessage.State state) -
state
public static DcpSetVbucketStateMessage.State state(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
-