Package org.stellar.sdk.xdr
Enum Class MessageType
- All Implemented Interfaces:
Serializable,Comparable<MessageType>,Constable,XdrElement
MessageType's original definition in the XDR file is:
enum MessageType
{
ERROR_MSG = 0,
AUTH = 2,
DONT_HAVE = 3,
// GET_PEERS (4) is deprecated
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) removed and replaced by TIME_SLICED_SURVEY_REQUEST
// SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE
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 ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageTypedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) static MessageTypefromXdrBase64(String xdr) static MessageTypefromXdrByteArray(byte[] xdr) intgetValue()static MessageTypeReturns 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, valueOfMethods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Enum Constant Details
-
ERROR_MSG
-
AUTH
-
DONT_HAVE
-
PEERS
-
GET_TX_SET
-
TX_SET
-
GENERALIZED_TX_SET
-
TRANSACTION
-
GET_SCP_QUORUMSET
-
SCP_QUORUMSET
-
SCP_MESSAGE
-
GET_SCP_STATE
-
HELLO
-
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
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-