Package com.couchbase.client.dcp.message
Enum Class DcpSetVbucketStateMessage
java.lang.Object
java.lang.Enum<DcpSetVbucketStateMessage>
com.couchbase.client.dcp.message.DcpSetVbucketStateMessage
- All Implemented Interfaces:
Serializable,Comparable<DcpSetVbucketStateMessage>,Constable
This message is used during the VBucket takeover process to hand off ownership of a VBucket between two nodes.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanactive(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static booleandead(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static intflags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static voidinit(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, DcpSetVbucketStateMessage.State state) static booleanis(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static booleanpending(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static booleanreplica(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) state(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer) static voidstate(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, DcpSetVbucketStateMessage.State state) static DcpSetVbucketStateMessageReturns the enum constant of this class with the specified name.static DcpSetVbucketStateMessage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
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) -
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)
-