Enum VbucketState

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

public enum VbucketState extends Enum<VbucketState>
  • Enum Constant Details

    • ANY

      public static final VbucketState ANY
      Any live state (except DEAD).
    • ACTIVE

      public static final VbucketState ACTIVE
      Actively servicing a partition.
    • REPLICA

      public static final VbucketState REPLICA
      Servicing a partition as a replica only.
    • PENDING

      public static final VbucketState PENDING
      Pending active.
    • DEAD

      public static final VbucketState DEAD
      Not in use, pending deletion.
  • Method Details

    • values

      public static VbucketState[] 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 VbucketState 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
    • value

      public int value()