public enum ReplicationRole extends Enum<ReplicationRole>
| Enum Constant and Description | 
|---|
COPY
Enum value Copy. 
 | 
NON_READABLE_SECONDARY
Enum value NonReadableSecondary. 
 | 
PRIMARY
Enum value Primary. 
 | 
SECONDARY
Enum value Secondary. 
 | 
SOURCE
Enum value Source. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ReplicationRole | 
fromString(String value)
Parses a serialized value to a ReplicationRole instance. 
 | 
String | 
toString()  | 
static ReplicationRole | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static ReplicationRole[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final ReplicationRole PRIMARY
public static final ReplicationRole SECONDARY
public static final ReplicationRole NON_READABLE_SECONDARY
public static final ReplicationRole SOURCE
public static final ReplicationRole COPY
public static ReplicationRole[] values()
for (ReplicationRole c : ReplicationRole.values()) System.out.println(c);
public static ReplicationRole 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 static ReplicationRole fromString(String value)
value - the serialized value to parse.public String toString()
toString in class Enum<ReplicationRole>Copyright © 2019. All rights reserved.