Enum DcpSetVbucketStateMessage

java.lang.Object
java.lang.Enum<DcpSetVbucketStateMessage>
com.couchbase.client.dcp.message.DcpSetVbucketStateMessage
All Implemented Interfaces:
Serializable, Comparable<DcpSetVbucketStateMessage>

public enum DcpSetVbucketStateMessage extends Enum<DcpSetVbucketStateMessage>
This message is used during the VBucket takeover process to hand off ownership of a VBucket between two nodes.
  • Method Details

    • values

      public static DcpSetVbucketStateMessage[] 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

      public static DcpSetVbucketStateMessage valueOf(String name)
      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 name
      NullPointerException - 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)