public final class StrandBlockingWaitStrategy extends Object implements com.lmax.disruptor.WaitStrategy
EventProcessors waiting on a barrier.| Constructor and Description |
|---|
StrandBlockingWaitStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
signalAllWhenBlocking() |
long |
waitFor(long sequence,
com.lmax.disruptor.Sequence cursorSequence,
com.lmax.disruptor.Sequence dependentSequence,
com.lmax.disruptor.SequenceBarrier barrier) |
long |
waitFor1(long sequence,
com.lmax.disruptor.Sequence cursorSequence,
com.lmax.disruptor.Sequence dependentSequence,
com.lmax.disruptor.SequenceBarrier barrier) |
long |
waitFor1(long sequence,
com.lmax.disruptor.Sequence cursorSequence,
com.lmax.disruptor.Sequence dependentSequence,
com.lmax.disruptor.SequenceBarrier barrier,
long timeout,
TimeUnit unit) |
public long waitFor(long sequence,
com.lmax.disruptor.Sequence cursorSequence,
com.lmax.disruptor.Sequence dependentSequence,
com.lmax.disruptor.SequenceBarrier barrier)
throws com.lmax.disruptor.AlertException,
InterruptedException
waitFor in interface com.lmax.disruptor.WaitStrategycom.lmax.disruptor.AlertExceptionInterruptedExceptionpublic long waitFor1(long sequence,
com.lmax.disruptor.Sequence cursorSequence,
com.lmax.disruptor.Sequence dependentSequence,
com.lmax.disruptor.SequenceBarrier barrier)
throws com.lmax.disruptor.AlertException,
InterruptedException,
co.paralleluniverse.fibers.SuspendExecution
com.lmax.disruptor.AlertExceptionInterruptedExceptionco.paralleluniverse.fibers.SuspendExecutionpublic long waitFor1(long sequence,
com.lmax.disruptor.Sequence cursorSequence,
com.lmax.disruptor.Sequence dependentSequence,
com.lmax.disruptor.SequenceBarrier barrier,
long timeout,
TimeUnit unit)
throws com.lmax.disruptor.AlertException,
InterruptedException,
co.paralleluniverse.fibers.SuspendExecution,
TimeoutException
com.lmax.disruptor.AlertExceptionInterruptedExceptionco.paralleluniverse.fibers.SuspendExecutionTimeoutExceptionpublic void signalAllWhenBlocking()
signalAllWhenBlocking in interface com.lmax.disruptor.WaitStrategy