| Package | Description |
|---|---|
| com.lmax.disruptor |
The Disruptor is a concurrent programming framework for exchanging and coordinating work as a continuous series of events.
|
| com.lmax.disruptor.dsl |
| Modifier and Type | Class and Description |
|---|---|
class |
BlockingWaitStrategy
Blocking strategy that uses a lock and condition variable for
EventProcessors waiting on a barrier. |
class |
BusySpinWaitStrategy
Busy Spin strategy that uses a busy spin loop for
EventProcessors waiting on a barrier. |
class |
PhasedBackoffWaitStrategy
Phased wait strategy for waiting
EventProcessors on a barrier.
This strategy can be used when throughput and low-latency are not as important as CPU resource.
Spins, then yields, then blocks on the configured BlockingStrategy. |
class |
SleepingWaitStrategy
Sleeping strategy that initially spins, then uses a Thread.yield(), and eventually for the minimum number of nanos
the OS and JVM will allow while the
EventProcessors are waiting on a barrier. |
class |
TimeoutBlockingWaitStrategy |
class |
YieldingWaitStrategy
Yielding strategy that uses a Thread.yield() for
EventProcessors waiting on a barrier
after an initially spinning. |
| Modifier and Type | Field and Description |
|---|---|
protected WaitStrategy |
AbstractSequencer.waitStrategy |
| Modifier and Type | Method and Description |
|---|---|
static <E> RingBuffer<E> |
RingBuffer.create(ProducerType producerType,
EventFactory<E> factory,
int bufferSize,
WaitStrategy waitStrategy)
Create a new Ring Buffer with the specified producer type (SINGLE or MULTI)
|
static <E> RingBuffer<E> |
RingBuffer.createMultiProducer(EventFactory<E> factory,
int bufferSize,
WaitStrategy waitStrategy)
Create a new multiple producer RingBuffer with the specified wait strategy.
|
static <E> RingBuffer<E> |
RingBuffer.createSingleProducer(EventFactory<E> factory,
int bufferSize,
WaitStrategy waitStrategy)
Create a new single producer RingBuffer with the specified wait strategy.
|
| Constructor and Description |
|---|
AbstractSequencer(int bufferSize,
WaitStrategy waitStrategy)
Create with the specified buffer size and wait strategy.
|
MultiProducerSequencer(int bufferSize,
WaitStrategy waitStrategy)
Construct a Sequencer with the selected wait strategy and buffer size.
|
SingleProducerSequencer(int bufferSize,
WaitStrategy waitStrategy)
Construct a Sequencer with the selected wait strategy and buffer size.
|
| Constructor and Description |
|---|
Disruptor(EventFactory<T> eventFactory,
int ringBufferSize,
java.util.concurrent.Executor executor,
ProducerType producerType,
WaitStrategy waitStrategy)
Create a new Disruptor.
|
Copyright © 2011 - 2013 LMAX Ltd. All Rights Reserved.