public final class AgileWaitingStrategy extends java.lang.Object implements reactor.jarjar.com.lmax.disruptor.WaitStrategy, WaitingMood
| Constructor and Description |
|---|
AgileWaitingStrategy() |
AgileWaitingStrategy(reactor.jarjar.com.lmax.disruptor.WaitStrategy slowWaitStrategy,
reactor.jarjar.com.lmax.disruptor.WaitStrategy fastWaitStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
calm()
Turn the mood into eco CPU demand mode to save resources from the underlying component.
|
reactor.jarjar.com.lmax.disruptor.WaitStrategy |
current() |
void |
nervous()
Turn the mood into aggressive CPU demand mode to effectively give an an additional resources boost to the underlying
component.
|
void |
signalAllWhenBlocking() |
long |
waitFor(long sequence,
reactor.jarjar.com.lmax.disruptor.Sequence cursor,
reactor.jarjar.com.lmax.disruptor.Sequence dependentSequence,
reactor.jarjar.com.lmax.disruptor.SequenceBarrier barrier) |
public AgileWaitingStrategy()
public AgileWaitingStrategy(reactor.jarjar.com.lmax.disruptor.WaitStrategy slowWaitStrategy,
reactor.jarjar.com.lmax.disruptor.WaitStrategy fastWaitStrategy)
public long waitFor(long sequence,
reactor.jarjar.com.lmax.disruptor.Sequence cursor,
reactor.jarjar.com.lmax.disruptor.Sequence dependentSequence,
reactor.jarjar.com.lmax.disruptor.SequenceBarrier barrier)
throws reactor.jarjar.com.lmax.disruptor.AlertException,
java.lang.InterruptedException,
reactor.jarjar.com.lmax.disruptor.TimeoutException
waitFor in interface reactor.jarjar.com.lmax.disruptor.WaitStrategyreactor.jarjar.com.lmax.disruptor.AlertExceptionjava.lang.InterruptedExceptionreactor.jarjar.com.lmax.disruptor.TimeoutExceptionpublic void signalAllWhenBlocking()
signalAllWhenBlocking in interface reactor.jarjar.com.lmax.disruptor.WaitStrategypublic void nervous()
WaitingMoodnervous in interface WaitingMoodpublic void calm()
WaitingMoodcalm in interface WaitingMoodpublic reactor.jarjar.com.lmax.disruptor.WaitStrategy current()