public enum DLedgerRequestCode extends Enum<DLedgerRequestCode>
| Enum Constant and Description |
|---|
APPEND |
GET |
HEART_BEAT |
LEADERSHIP_TRANSFER |
METADATA |
PULL |
PUSH |
UNKNOWN |
VOTE |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getDesc() |
String |
toString() |
static DLedgerRequestCode |
valueOf(int code) |
static DLedgerRequestCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DLedgerRequestCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DLedgerRequestCode UNKNOWN
public static final DLedgerRequestCode METADATA
public static final DLedgerRequestCode APPEND
public static final DLedgerRequestCode GET
public static final DLedgerRequestCode VOTE
public static final DLedgerRequestCode HEART_BEAT
public static final DLedgerRequestCode PULL
public static final DLedgerRequestCode PUSH
public static final DLedgerRequestCode LEADERSHIP_TRANSFER
public static DLedgerRequestCode[] values()
for (DLedgerRequestCode c : DLedgerRequestCode.values()) System.out.println(c);
public static DLedgerRequestCode 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 DLedgerRequestCode valueOf(int code)
public int getCode()
public String getDesc()
public String toString()
toString in class Enum<DLedgerRequestCode>Copyright © 2023. All rights reserved.