Package com.jamieallen.sdisruptor

Examples of com.jamieallen.sdisruptor.SequenceBatch.end()


        final SequenceBatch sequenceBatch = new SequenceBatch(batchSize);

        ringBuffer.nextEntries(sequenceBatch);

        assertThat(Long.valueOf(sequenceBatch.getStart()), is(Long.valueOf(0L)));
        assertThat(Long.valueOf(sequenceBatch.end()), is(Long.valueOf(4L)));
        assertThat(Long.valueOf(ringBuffer.cursor()), is(Long.valueOf(-1L)));

        ringBuffer.commit(sequenceBatch);

        assertThat(Long.valueOf(ringBuffer.cursor()), is(Long.valueOf(batchSize - 1L)));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.