uk.co.real_logic.artio.messages.SessionStatus 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 SessionStatus
{
SESSION_HANDOVER((short)0),
LIBRARY_NOTIFICATION((short)1),
/**
* To be used to represent not present or null.
*/
NULL_VAL((short)255);
private final short value;
SessionStatus(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 SessionStatus get(final short value)
{
switch (value)
{
case 0: return SESSION_HANDOVER;
case 1: return LIBRARY_NOTIFICATION;
case 255: return NULL_VAL;
}
throw new IllegalArgumentException("Unknown value: " + value);
}
}