public enum MessageType extends java.lang.Enum<MessageType> implements XdrElement
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 };
Modifier and Type | Method and Description |
---|---|
static MessageType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static MessageType |
fromXdrBase64(java.lang.String xdr) |
static MessageType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static MessageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final MessageType ERROR_MSG
public static final MessageType AUTH
public static final MessageType DONT_HAVE
public static final MessageType PEERS
public static final MessageType GET_TX_SET
public static final MessageType TX_SET
public static final MessageType GENERALIZED_TX_SET
public static final MessageType TRANSACTION
public static final MessageType GET_SCP_QUORUMSET
public static final MessageType SCP_QUORUMSET
public static final MessageType SCP_MESSAGE
public static final MessageType GET_SCP_STATE
public static final MessageType HELLO
public static final MessageType SEND_MORE
public static final MessageType SEND_MORE_EXTENDED
public static final MessageType FLOOD_ADVERT
public static final MessageType FLOOD_DEMAND
public static final MessageType TIME_SLICED_SURVEY_REQUEST
public static final MessageType TIME_SLICED_SURVEY_RESPONSE
public static final MessageType TIME_SLICED_SURVEY_START_COLLECTING
public static final MessageType TIME_SLICED_SURVEY_STOP_COLLECTING
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType 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 int getValue()
public static MessageType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static MessageType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static MessageType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException