| Enum Constant and Description |
|---|
JOURNALS
When one node wants to sync its transaction data with other node
in cluster, the latest possibly available Journals will be sent and
replayed by requester.
|
SNAPSHOT
When one node wants to sync its transaction data with other node
in cluster, the latest Snapshot of the whole system will be sent and
applied by requester.
|
| Modifier and Type | Method and Description |
|---|---|
static SyncMode |
get(byte type) |
byte |
getType() |
static SyncMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SyncMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyncMode SNAPSHOT
public static final SyncMode JOURNALS
public static SyncMode[] values()
for (SyncMode c : SyncMode.values()) System.out.println(c);
public static SyncMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte getType()
public static SyncMode get(byte type)
Copyright © 2015 Artem Dmitriev. All Rights Reserved.