All Downloads are FREE. Search and download functionalities are using the official Maven repository.

b3.entrypoint.fixp.sbe.NegotiationRejectCode Maven / Gradle / Ivy

/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;


/**
 * Identifies the code of reject negotiation.
 */
@SuppressWarnings("all")
public enum NegotiationRejectCode
{
    UNSPECIFIED((short)0),

    CREDENTIALS((short)1),

    FLOWTYPE_NOT_SUPPORTED((short)2),

    ALREADY_NEGOTIATED((short)3),

    SESSION_BLOCKED((short)4),

    INVALID_SESSIONID((short)5),

    INVALID_SESSIONVERID((short)6),

    INVALID_TIMESTAMP((short)7),

    INVALID_FIRM((short)8),

    NEGOTIATE_NOT_ALLOWED((short)20),

    /**
     * To be used to represent not present or null.
     */
    NULL_VAL((short)255);

    private final short value;

    NegotiationRejectCode(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 NegotiationRejectCode get(final short value)
    {
        switch (value)
        {
            case 0: return UNSPECIFIED;
            case 1: return CREDENTIALS;
            case 2: return FLOWTYPE_NOT_SUPPORTED;
            case 3: return ALREADY_NEGOTIATED;
            case 4: return SESSION_BLOCKED;
            case 5: return INVALID_SESSIONID;
            case 6: return INVALID_SESSIONVERID;
            case 7: return INVALID_TIMESTAMP;
            case 8: return INVALID_FIRM;
            case 20: return NEGOTIATE_NOT_ALLOWED;
            case 255: return NULL_VAL;
        }

        throw new IllegalArgumentException("Unknown value: " + value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy