class PlatformAtomicSequence extends PlatformAbstractTarget {
    /** */
    private final IgniteAtomicSequence atomicSeq;

    /** */
    private static final int OP_ADD_AND_GET = 1;

    /** */
    private static final int OP_CLOSE = 2;

    /** */
    private static final int OP_GET = 3;

    /** */
    private static final int OP_GET_AND_ADD = 4;

    /** */
    private static final int OP_GET_AND_INCREMENT = 5;

    /** */
    private static final int OP_GET_BATCH_SIZE = 6;

    /** */
    private static final int OP_INCREMENT_AND_GET = 7;

    /** */
    private static final int OP_IS_CLOSED = 8;

    /** */
    private static final int OP_SET_BATCH_SIZE = 9;

    /**
     * Ctor.
     * @param ctx Context.
     * @param atomicSeq AtomicSequence to wrap.
     */
    public PlatformAtomicSequence(PlatformContext ctx, IgniteAtomicSequence atomicSeq) {
        super(ctx);

        assert atomicSeq != null;

        this.atomicSeq = atomicSeq;
    }


    /** {@inheritDoc} */
    @Override public long processInLongOutLong(int type, long val) throws IgniteCheckedException {<FILL_FUNCTION_BODY>}
}

        switch (type) {
            case OP_ADD_AND_GET:
                return atomicSeq.addAndGet(val);

            case OP_GET_AND_ADD:
                return atomicSeq.getAndAdd(val);

            case OP_SET_BATCH_SIZE:
                atomicSeq.batchSize((int)val);

                return TRUE;

            case OP_CLOSE:
                atomicSeq.close();

                return TRUE;

            case OP_GET:
                return atomicSeq.get();

            case OP_GET_AND_INCREMENT:
                return atomicSeq.getAndIncrement();

            case OP_INCREMENT_AND_GET:
                return atomicSeq.incrementAndGet();

            case OP_IS_CLOSED:
                return atomicSeq.removed() ? TRUE : FALSE;

            case OP_GET_BATCH_SIZE:
                return atomicSeq.batchSize();
        }

        return super.processInLongOutLong(type, val);
    
<methods>public java.lang.Exception convertException(java.lang.Exception) ,public org.apache.ignite.internal.processors.platform.PlatformContext platformContext() ,public long processInLongOutLong(int, long) throws org.apache.ignite.IgniteCheckedException,public org.apache.ignite.internal.processors.platform.PlatformTarget processInObjectStreamOutObjectStream(int, org.apache.ignite.internal.processors.platform.PlatformTarget, org.apache.ignite.internal.binary.BinaryRawReaderEx, org.apache.ignite.internal.binary.BinaryRawWriterEx) throws org.apache.ignite.IgniteCheckedException,public org.apache.ignite.internal.processors.platform.PlatformAsyncResult processInStreamAsync(int, org.apache.ignite.internal.binary.BinaryRawReaderEx) throws org.apache.ignite.IgniteCheckedException,public long processInStreamOutLong(int, org.apache.ignite.internal.binary.BinaryRawReaderEx) throws org.apache.ignite.IgniteCheckedException,public long processInStreamOutLong(int, org.apache.ignite.internal.binary.BinaryRawReaderEx, org.apache.ignite.internal.processors.platform.memory.PlatformMemory) throws org.apache.ignite.IgniteCheckedException,public org.apache.ignite.internal.processors.platform.PlatformTarget processInStreamOutObject(int, org.apache.ignite.internal.binary.BinaryRawReaderEx) throws org.apache.ignite.IgniteCheckedException,public void processInStreamOutStream(int, org.apache.ignite.internal.binary.BinaryRawReaderEx, org.apache.ignite.internal.binary.BinaryRawWriterEx) throws org.apache.ignite.IgniteCheckedException,public org.apache.ignite.internal.processors.platform.PlatformTarget processOutObject(int) throws org.apache.ignite.IgniteCheckedException,public void processOutStream(int, org.apache.ignite.internal.binary.BinaryRawWriterEx) throws org.apache.ignite.IgniteCheckedException,public static T throwUnsupported(int) throws org.apache.ignite.IgniteCheckedException<variables>protected static final int ERROR,protected static final int FALSE,protected static final int TRUE,protected final non-sealed org.apache.ignite.IgniteLogger log,protected final non-sealed org.apache.ignite.internal.processors.platform.PlatformContext platformCtx