Package org.stellar.sdk.xdr
Enum Class MessageType
- All Implemented Interfaces:
Serializable
,Comparable<MessageType>
,Constable
MessageType's original definition in the XDR file is:
enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, GET_PEERS = 4, // gets a list of peers this guy knows about PEERS = 5, GET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17, TRANSACTION = 8, // pass on a tx you have heard about // SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12, // new messages HELLO = 13, SURVEY_REQUEST = 14, SURVEY_RESPONSE = 15, SEND_MORE = 16, SEND_MORE_EXTENDED = 20, FLOOD_ADVERT = 18, FLOOD_DEMAND = 19, TIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 };
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageType
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) static MessageType
fromXdrBase64
(String xdr) static MessageType
fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
static MessageType
Returns the enum constant of this class with the specified name.static MessageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ERROR_MSG
-
AUTH
-
DONT_HAVE
-
GET_PEERS
-
PEERS
-
GET_TX_SET
-
TX_SET
-
GENERALIZED_TX_SET
-
TRANSACTION
-
GET_SCP_QUORUMSET
-
SCP_QUORUMSET
-
SCP_MESSAGE
-
GET_SCP_STATE
-
HELLO
-
SURVEY_REQUEST
-
SURVEY_RESPONSE
-
SEND_MORE
-
SEND_MORE_EXTENDED
-
FLOOD_ADVERT
-
FLOOD_DEMAND
-
TIME_SLICED_SURVEY_REQUEST
-
TIME_SLICED_SURVEY_RESPONSE
-
TIME_SLICED_SURVEY_START_COLLECTING
-
TIME_SLICED_SURVEY_STOP_COLLECTING
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-