public enum VbucketState extends Enum<VbucketState>
| Enum Constant and Description |
|---|
ACTIVE
Actively servicing a partition.
|
ANY
Any live state (except DEAD).
|
DEAD
Not in use, pending deletion.
|
PENDING
Pending active.
|
REPLICA
Servicing a partition as a replica only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
value() |
static VbucketState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VbucketState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VbucketState ANY
public static final VbucketState ACTIVE
public static final VbucketState REPLICA
public static final VbucketState PENDING
public static final VbucketState DEAD
public static VbucketState[] values()
for (VbucketState c : VbucketState.values()) System.out.println(c);
public static VbucketState 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 int value()
Copyright © 2021 Couchbase, Inc.. All rights reserved.