public class RingBufferConsumerIterator<T> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RingBufferConsumerIterator.Consumer<R> |
Constructor and Description |
---|
RingBufferConsumerIterator(Iterator<T> delegate,
int queueSizePowerOf2,
int numConsumers) |
RingBufferConsumerIterator(Iterator<T> delegate,
RingBufferConsumerIterator.Consumer<T>[] consumers,
int queueSizePowerOf2,
boolean runPublishSycnronously) |
Modifier and Type | Method and Description |
---|---|
Iterator<T>[] |
getIterators() |
void |
waitForCompletion() |
void |
waitForPublishToComplete() |
public RingBufferConsumerIterator(Iterator<T> delegate, int queueSizePowerOf2, int numConsumers)
public RingBufferConsumerIterator(Iterator<T> delegate, RingBufferConsumerIterator.Consumer<T>[] consumers, int queueSizePowerOf2, boolean runPublishSycnronously)
public void waitForPublishToComplete() throws InterruptedException
InterruptedException
public void waitForCompletion() throws InterruptedException
InterruptedException
Copyright © 2018. All rights reserved.