public static enum Model.Commitment extends java.lang.Enum<Model.Commitment> implements com.google.protobuf.Internal.EnumLite
Reference: https://docs.solana.com/apps/jsonrpc-api#configuring-state-commitmentProtobuf enum
kin.agora.common.v4.Commitment| Enum Constant and Description |
|---|
MAX
The node will query the most recent bank confirmed by the clsuter as having
reached `MAX_LOCKOUT_HISTORY`.
|
RECENT
The node will query its most recent bank.
|
ROOT
The node will query the most recent bank having reached `MAX_LOCKOUT_HISTORY`
confirmations on 'this' node.
|
SINGLE
The node will query the most recent bank having reached 1 confirmation.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_VALUE
The node will query the most recent bank confirmed by the clsuter as having
reached `MAX_LOCKOUT_HISTORY`.
|
static int |
RECENT_VALUE
The node will query its most recent bank.
|
static int |
ROOT_VALUE
The node will query the most recent bank having reached `MAX_LOCKOUT_HISTORY`
confirmations on 'this' node.
|
static int |
SINGLE_VALUE
The node will query the most recent bank having reached 1 confirmation.
|
| Modifier and Type | Method and Description |
|---|---|
static Model.Commitment |
forNumber(int value) |
int |
getNumber() |
static com.google.protobuf.Internal.EnumLiteMap<Model.Commitment> |
internalGetValueMap() |
static com.google.protobuf.Internal.EnumVerifier |
internalGetVerifier() |
static Model.Commitment |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Model.Commitment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Model.Commitment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Model.Commitment RECENT
The node will query its most recent bank.
RECENT = 0;public static final Model.Commitment SINGLE
The node will query the most recent bank having reached 1 confirmation.
SINGLE = 1;public static final Model.Commitment ROOT
The node will query the most recent bank having reached `MAX_LOCKOUT_HISTORY` confirmations on 'this' node.
ROOT = 2;public static final Model.Commitment MAX
The node will query the most recent bank confirmed by the clsuter as having reached `MAX_LOCKOUT_HISTORY`.
MAX = 3;public static final Model.Commitment UNRECOGNIZED
public static final int RECENT_VALUE
The node will query its most recent bank.
RECENT = 0;public static final int SINGLE_VALUE
The node will query the most recent bank having reached 1 confirmation.
SINGLE = 1;public static final int ROOT_VALUE
The node will query the most recent bank having reached `MAX_LOCKOUT_HISTORY` confirmations on 'this' node.
ROOT = 2;public static final int MAX_VALUE
The node will query the most recent bank confirmed by the clsuter as having reached `MAX_LOCKOUT_HISTORY`.
MAX = 3;public static Model.Commitment[] values()
for (Model.Commitment c : Model.Commitment.values()) System.out.println(c);
public static Model.Commitment 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 final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLite@Deprecated public static Model.Commitment valueOf(int value)
forNumber(int) instead.value - The number of the enum to look for.public static Model.Commitment forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Model.Commitment> internalGetValueMap()
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()