b3.entrypoint.fixp.sbe.EstablishRejectCode Maven / Gradle / Ivy
/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;
/**
* Identifies the code of reject establishment.
*/
@SuppressWarnings("all")
public enum EstablishRejectCode
{
UNSPECIFIED((short)0),
CREDENTIALS((short)1),
UNNEGOTIATED((short)2),
ALREADY_ESTABLISHED((short)3),
SESSION_BLOCKED((short)4),
INVALID_SESSIONID((short)5),
INVALID_SESSIONVERID((short)6),
INVALID_TIMESTAMP((short)7),
INVALID_KEEPALIVE_INTERVAL((short)8),
INVALID_NEXTSEQNO((short)9),
ESTABLISH_ATTEMPTS_EXCEEDED((short)10),
ESTABLISH_NOT_ALLOWED((short)20),
/**
* To be used to represent not present or null.
*/
NULL_VAL((short)255);
private final short value;
EstablishRejectCode(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 EstablishRejectCode get(final short value)
{
switch (value)
{
case 0: return UNSPECIFIED;
case 1: return CREDENTIALS;
case 2: return UNNEGOTIATED;
case 3: return ALREADY_ESTABLISHED;
case 4: return SESSION_BLOCKED;
case 5: return INVALID_SESSIONID;
case 6: return INVALID_SESSIONVERID;
case 7: return INVALID_TIMESTAMP;
case 8: return INVALID_KEEPALIVE_INTERVAL;
case 9: return INVALID_NEXTSEQNO;
case 10: return ESTABLISH_ATTEMPTS_EXCEEDED;
case 20: return ESTABLISH_NOT_ALLOWED;
case 255: return NULL_VAL;
}
throw new IllegalArgumentException("Unknown value: " + value);
}
}