public enum EventCode extends Enum<EventCode>
Enum Constant and Description |
---|
ERROR
Error codes.
|
ERROR_ON_AUTHORIZE
Error on authorize process.
|
ERROR_ON_CREATE_SESSION
Error on create session.
|
ERROR_ON_PROCESS_MESSAGE
Error on process message.
|
ERROR_ON_SEND_MESSAGE
Error on send message.
|
INFO
Info codes.
|
MESSAGE_DELIVERED
Message delivered.
|
SESSION_CONNECTED
Session was created.
|
SESSION_CREATED
Session created.
|
SESSION_DESTROYED
Session was destroyed.
|
SESSION_DISCONNECTED
Session disconnected.
|
SESSION_RECONNECTING
Session reconnecting.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static EventCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventCode INFO
public static final EventCode SESSION_CREATED
public static final EventCode MESSAGE_DELIVERED
public static final EventCode SESSION_DISCONNECTED
public static final EventCode SESSION_RECONNECTING
public static final EventCode SESSION_CONNECTED
public static final EventCode SESSION_DESTROYED
public static final EventCode ERROR
public static final EventCode ERROR_ON_CREATE_SESSION
public static final EventCode ERROR_ON_PROCESS_MESSAGE
public static final EventCode ERROR_ON_SEND_MESSAGE
public static final EventCode ERROR_ON_AUTHORIZE
public static EventCode[] values()
for (EventCode c : EventCode.values()) System.out.println(c);
public static EventCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
Copyright © 2000–2022 EPAM Systems. All rights reserved.