Package com.lmax.disruptor.support

Examples of com.lmax.disruptor.support.FunctionEntry


        long start = System.currentTimeMillis();

        long operandTwo = OPERAND_TWO_INITIAL_VALUE;
        for (long i = 0; i < ITERATIONS; i++)
        {
            FunctionEntry entry = ringBuffer.nextEntry();
            entry.setOperandOne(i);
            entry.setOperandTwo(operandTwo--);
            ringBuffer.commit(entry);
        }

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

TOP

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

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.