Package reactor.jarjar.com.lmax.disruptor

Examples of reactor.jarjar.com.lmax.disruptor.BlockingWaitStrategy


    if(null == producerType) {
      producerType = ProducerType.MULTI;
    }
    if(null == waitStrategy) {
      waitStrategy = new BlockingWaitStrategy();
    }

    RingBufferAllocator<T> alloc = new RingBufferAllocator<T>(
        name,
        ringSize,
View Full Code Here


   * Contribution by Nicolas Labrot
   */
  @Test
  public void testParallelWithJava8StreamsInput() throws InterruptedException {
    env.addDispatcherFactory("test-p",
        Environment.createDispatcherFactory("test-p", 2, 2048, null, ProducerType.MULTI, new BlockingWaitStrategy()));

    int max = ThreadLocalRandom.current().nextInt(100, 300);
    CountDownLatch countDownLatch = new CountDownLatch(max + 1);

    Stream<Integer> worker = Streams.range(0, max).dispatchOn(env);
View Full Code Here

TOP

Related Classes of reactor.jarjar.com.lmax.disruptor.BlockingWaitStrategy

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.