Enum Class EventCode
- All Implemented Interfaces:
Serializable
,Comparable<EventCode>
,Constable
Event codes for adaptor.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionError codes.Error on authorize process.Error on create session.Error on process message.Error on send message.Info codes.Message delivered.Session was created.Session created.Session was destroyed.Session disconnected.Session reconnecting. -
Method Summary
-
Enum Constant Details
-
INFO
Info codes. -
SESSION_CREATED
Session created. -
MESSAGE_DELIVERED
Message delivered. -
SESSION_DISCONNECTED
Session disconnected. -
SESSION_RECONNECTING
Session reconnecting. -
SESSION_CONNECTED
Session was created. -
SESSION_DESTROYED
Session was destroyed. -
ERROR
Error codes. -
ERROR_ON_CREATE_SESSION
Error on create session. -
ERROR_ON_PROCESS_MESSAGE
Error on process message. For sample when consumer try to read message. -
ERROR_ON_SEND_MESSAGE
Error on send message. For sample when producer try to send message. -
ERROR_ON_AUTHORIZE
Error on authorize process. For sample when we tried send/receive from topic/queue
-
-
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
-
getCode
public int getCode()
-