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

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

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


/**
 * Identifies the code of reject retransmission.
 */
@SuppressWarnings("all")
public enum RetransmitRejectCode
{
    OUT_OF_RANGE((short)0),

    INVALID_SESSION((short)1),

    REQUEST_LIMIT_EXCEEDED((short)2),

    RETRANSMIT_IN_PROGRESS((short)3),

    INVALID_TIMESTAMP((short)4),

    INVALID_FROMSEQNO((short)5),

    INVALID_COUNT((short)9),

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

    private final short value;

    RetransmitRejectCode(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 RetransmitRejectCode get(final short value)
    {
        switch (value)
        {
            case 0: return OUT_OF_RANGE;
            case 1: return INVALID_SESSION;
            case 2: return REQUEST_LIMIT_EXCEEDED;
            case 3: return RETRANSMIT_IN_PROGRESS;
            case 4: return INVALID_TIMESTAMP;
            case 5: return INVALID_FROMSEQNO;
            case 9: return INVALID_COUNT;
            case 255: return NULL_VAL;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy