Package com.lmax.disruptor.support

Examples of com.lmax.disruptor.support.ValueEntry


        EXECUTOR.submit(batchConsumer);
        long start = System.currentTimeMillis();

        for (long i = 0; i < ITERATIONS; i++)
        {
            ValueEntry entry = ringBuffer.nextEntry();
            entry.setValue(i);
            ringBuffer.commit(entry);
        }

        final long expectedSequence = ringBuffer.getCursor();
        while (batchConsumer.getSequence() < expectedSequence)
View Full Code Here


        long start = System.currentTimeMillis();

        for (long i = 0; i < ITERATIONS; i++)
        {
            ValueEntry entry = ringBuffer.nextEntry();
            entry.setValue(i);
            ringBuffer.commit(entry);
        }

        final long expectedSequence = ringBuffer.getCursor();
        while (Util.getMinimumSequence(batchConsumers) < expectedSequence)
View Full Code Here

        for (long i = 0; i < ITERATIONS; i += batchSize)
        {
            ringBuffer.nextEntries(sequenceBatch);
            for (long c = sequenceBatch.getStart(), end = sequenceBatch.getEnd(); c <= end; c++)
            {
                ValueEntry entry = ringBuffer.getEntry(c);
                entry.setValue(offset++);
            }
            ringBuffer.commit(sequenceBatch);
        }

        final long expectedSequence = ringBuffer.getCursor();
View Full Code Here

        EXECUTOR.submit(stepTwoBatchConsumer);
        EXECUTOR.submit(stepThreeBatchConsumer);

        for (long i = 0; i < ITERATIONS; i++)
        {
            ValueEntry entry = ringBuffer.nextEntry();
            entry.setValue(System.nanoTime());
            ringBuffer.commit(entry);

            long pauseStart = System.nanoTime();
            while (PAUSE_NANOS > (System.nanoTime() -  pauseStart))
            {
View Full Code Here

TOP

Related Classes of com.lmax.disruptor.support.ValueEntry

Copyright © 2018 www.massapicom. 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.