|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CoreMessageCode>
osnap.api.model.CoreMessageCode
public enum CoreMessageCode
The different types of CoreMessageCode that can be used by a CoreMessage
Enum Constant Summary | |
---|---|
ALLOWED_CONNECT
From Core to Module Core sends an ALLOWED_CONNECT code to the module if it has been accepted and is allowed to connect. |
|
DENIED_CONNECT
From Core to Module The module was denied connection to the core. |
|
INVALID_CREDENTIALS
From Core to Module The module was denied connection because of invalid login credentials. |
|
LAST_ID
From Module to Core The module sends a LAST_ID code to the Core to tell it the last message ID it read. |
|
MSG_SENT
From Module to Core MSG_SENT is sent from the module to the core when an answer from eJournal has been sent to the user. |
|
NAME_DUPE
From Core to Module The module was denied connection to the core because a module with that name already existed. |
|
NEW_MODULE
From Module to Core This is sent to the Core upon an initial connection attempt to let the core know the module wants to connect. |
|
PING
From Module to Core PING is sent every now and then from a module to the core to understand if the connection is still alive. |
|
PONG
From Core to Module PONG is sent from the Core to the module who invoked PING in the first place. |
|
PULSE
From Core to Module This is sent to all modules connected to the Core to check for new messages posted on the social network |
|
STOP
From Core to Module The module is requested to terminate. |
Method Summary | |
---|---|
static CoreMessageCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CoreMessageCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CoreMessageCode PULSE
public static final CoreMessageCode ALLOWED_CONNECT
public static final CoreMessageCode DENIED_CONNECT
public static final CoreMessageCode NAME_DUPE
public static final CoreMessageCode INVALID_CREDENTIALS
public static final CoreMessageCode STOP
public static final CoreMessageCode NEW_MODULE
public static final CoreMessageCode LAST_ID
public static final CoreMessageCode MSG_SENT
public static final CoreMessageCode PING
public static final CoreMessageCode PONG
Method Detail |
---|
public static CoreMessageCode[] values()
for (CoreMessageCode c : CoreMessageCode.values()) System.out.println(c);
public static CoreMessageCode 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 name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |