Package com.knowm.xchange.serum
Enum SerumConfigs.Commitment
- All Implemented Interfaces:
Serializable
,Comparable<SerumConfigs.Commitment>
,java.lang.constant.Constable
- Enclosing class:
SerumConfigs
The level of commitment desired when querying state
'max': Query the most recent block which has been finalized by the cluster 'recent': Query the most recent block which has reached 1 confirmation by the connected node 'root': Query the most recent block which has been rooted by the connected node 'single': Query the most recent block which has reached 1 confirmation by the cluster 'singleGossip': Query the most recent block which has reached 1 confirmation according to votes seen in gossip
For more https://docs.solana.com/developing/clients/jsonrpc-api#configuring-state-commitment
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SerumConfigs.Commitment
Returns the enum constant of this type with the specified name.static SerumConfigs.Commitment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
max
-
recent
-
root
-
single
-
singleGossip
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-