public enum ReplicationType extends Enum<ReplicationType>
Enum Constant and Description |
---|
ASYNC
Async replication.
|
DEFAULT
Use the default replication type configured for this node.
|
SYNC
Sync replication, wait till all replicas have performed the operation.
|
Modifier and Type | Method and Description |
---|---|
static ReplicationType |
fromId(byte id)
Constructs the operation type from its internal representation.
|
static ReplicationType |
fromString(String type)
Parse the replication type from string.
|
byte |
id()
The internal representation of the operation type.
|
static ReplicationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicationType SYNC
public static final ReplicationType ASYNC
public static final ReplicationType DEFAULT
public static ReplicationType[] values()
for (ReplicationType c : ReplicationType.values()) System.out.println(c);
public static ReplicationType 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 byte id()
public static ReplicationType fromId(byte id)
public static ReplicationType fromString(String type)
Copyright © 2009–2015. All rights reserved.