Package org.fisco.bcos.sdk.model
Enum MsgType
java.lang.Object
java.lang.Enum<MsgType>
org.fisco.bcos.sdk.model.MsgType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MsgType>
,java.lang.constant.Constable
public enum MsgType extends java.lang.Enum<MsgType>
Message types send from fisco bcos node.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description AMOP_CLIENT_TOPICS
AMOP_MULBROADCAST
AMOP_REQUEST
Message types processed by AMOP module AMOP_REQUEST:type of request message from sdk AMOP_RESPONSE:type of response message to sdk AMOP_MULBROADCAST:type of mult broadcast message AMOP_CLIENT_TOPICS:type of topic request message REQUEST_TOPICCERT:type of request verify message UPDATE_TOPIICSTATUS:type of update status messageAMOP_RESPONSE
BLOCK_NOTIFY
CHANNEL_RPC_REQUEST
Message types which Client module interested in.CLIENT_HANDSHAKE
CLIENT_HEARTBEAT
Message types processed by Client module.CLIENT_REGISTER_EVENT_LOG
Message types processed by EventSubscribe module CLIENT_REGISTER_EVENT_LOG:type of event log filter register request and response message EVENT_LOG_PUSH:type of event log push messageCLIENT_UNREGISTER_EVENT_LOG
EVENT_LOG_PUSH
REQUEST_TOPICCERT
TRANSACTION_NOTIFY
UPDATE_TOPIICSTATUS
-
Method Summary
Modifier and Type Method Description int
getType()
void
setType(int type)
static MsgType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MsgType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CHANNEL_RPC_REQUEST
Message types which Client module interested in. CHANNEL_RPC_REQUEST: type of rpc request message TRANSACTION_NOTIFY: type of transaction notify message BLOCK_NOTIFY: type of block notify message -
TRANSACTION_NOTIFY
-
BLOCK_NOTIFY
-
CLIENT_HEARTBEAT
Message types processed by Client module. CLIENT_HEARTBEAT:type of heart beat message CLIENT_HANDSHAKE:type of hand shake message -
CLIENT_HANDSHAKE
-
CLIENT_REGISTER_EVENT_LOG
Message types processed by EventSubscribe module CLIENT_REGISTER_EVENT_LOG:type of event log filter register request and response message EVENT_LOG_PUSH:type of event log push message -
CLIENT_UNREGISTER_EVENT_LOG
-
EVENT_LOG_PUSH
-
AMOP_REQUEST
Message types processed by AMOP module AMOP_REQUEST:type of request message from sdk AMOP_RESPONSE:type of response message to sdk AMOP_MULBROADCAST:type of mult broadcast message AMOP_CLIENT_TOPICS:type of topic request message REQUEST_TOPICCERT:type of request verify message UPDATE_TOPIICSTATUS:type of update status message -
AMOP_RESPONSE
-
AMOP_MULBROADCAST
-
AMOP_CLIENT_TOPICS
-
REQUEST_TOPICCERT
-
UPDATE_TOPIICSTATUS
-
-
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getType
public int getType() -
setType
public void setType(int type)
-