Enum ZMonitor.ProtocolCode
- All Implemented Interfaces:
Serializable, Comparable<ZMonitor.ProtocolCode>, java.lang.constant.Constable
- Enclosing class:
ZMonitor
The code returned by handshake events, as generated by
eventHandshakeXXX.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate static final Map<Integer, ZMonitor.ProtocolCode> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZMonitor.ProtocolCodefindByCode(int code) Find theZMonitor.ProtocolCodeassociated with the numerical error code send witheventHandshakeXXX.static ZMonitor.ProtocolCodeReturns the enum constant of this type with the specified name.static ZMonitor.ProtocolCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ZMQ_PROTOCOL_ERROR_ZMTP_UNSPECIFIED
-
ZMQ_PROTOCOL_ERROR_ZMTP_UNEXPECTED_COMMAND
-
ZMQ_PROTOCOL_ERROR_ZMTP_INVALID_SEQUENCE
-
ZMQ_PROTOCOL_ERROR_ZMTP_KEY_EXCHANGE
-
ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_UNSPECIFIED
-
ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_MESSAGE
-
ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_HELLO
-
ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_INITIATE
-
ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_ERROR
-
ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_READY
-
ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_WELCOME
-
ZMQ_PROTOCOL_ERROR_ZMTP_INVALID_METADATA
-
ZMQ_PROTOCOL_ERROR_ZMTP_CRYPTOGRAPHIC
-
ZMQ_PROTOCOL_ERROR_ZMTP_MECHANISM_MISMATCH
-
ZMQ_PROTOCOL_ERROR_ZAP_UNSPECIFIED
-
ZMQ_PROTOCOL_ERROR_ZAP_MALFORMED_REPLY
-
ZMQ_PROTOCOL_ERROR_ZAP_BAD_REQUEST_ID
-
ZMQ_PROTOCOL_ERROR_ZAP_BAD_VERSION
-
ZMQ_PROTOCOL_ERROR_ZAP_INVALID_STATUS_CODE
-
ZMQ_PROTOCOL_ERROR_ZAP_INVALID_METADATA
-
ZMQ_PROTOCOL_ERROR_WS_UNSPECIFIED
-
-
Field Details
-
MAP
-
code
private final int code
-
-
Constructor Details
-
ProtocolCode
private ProtocolCode(int code)
-
-
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
-
findByCode
Find theZMonitor.ProtocolCodeassociated with the numerical error code send witheventHandshakeXXX.- Parameters:
code- the numerical error code- Returns:
- the found
ZMonitor.ProtocolCode
-