uk.co.real_logic.artio.messages.SessionReplyStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artio-codecs Show documentation
Show all versions of artio-codecs Show documentation
High-Performance FIX Gateway
/* Generated SBE (Simple Binary Encoding) message codec. */
package uk.co.real_logic.artio.messages;
@SuppressWarnings("all")
public enum SessionReplyStatus
{
/**
* Operation Succeeded
*/
OK((short)0),
/**
* The gateway doesn't know about the specified connection id
*/
UNKNOWN_SESSION((short)1),
/**
* The gateway doesn't know about your library
*/
UNKNOWN_LIBRARY((short)2),
/**
* Another library owns that session
*/
OTHER_SESSION_OWNER((short)3),
/**
* The session hasn't logged in yet so you can't replay anything
*/
SESSION_NOT_LOGGED_IN((short)4),
/**
* Can't replay to that sequence number: haven't archived it yet
*/
SEQUENCE_NUMBER_TOO_HIGH((short)5),
/**
* We can't find the required number of messages in the log
*/
MISSING_MESSAGES((short)6),
/**
* You've requested replay of messages, but EngineConfiguration has disabled required logging of messsages
*/
INVALID_CONFIGURATION_NOT_LOGGING_MESSAGES((short)7),
/**
* To be used to represent not present or null.
*/
NULL_VAL((short)255);
private final short value;
SessionReplyStatus(final short value)
{
this.value = value;
}
/**
* The raw encoded value in the Java type representation.
*
* @return the raw value encoded.
*/
public short value()
{
return value;
}
/**
* Lookup the enum value representing the value.
*
* @param value encoded to be looked up.
* @return the enum value representing the value.
*/
public static SessionReplyStatus get(final short value)
{
switch (value)
{
case 0: return OK;
case 1: return UNKNOWN_SESSION;
case 2: return UNKNOWN_LIBRARY;
case 3: return OTHER_SESSION_OWNER;
case 4: return SESSION_NOT_LOGGED_IN;
case 5: return SEQUENCE_NUMBER_TOO_HIGH;
case 6: return MISSING_MESSAGES;
case 7: return INVALID_CONFIGURATION_NOT_LOGGING_MESSAGES;
case 255: return NULL_VAL;
}
throw new IllegalArgumentException("Unknown value: " + value);
}
}