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.WaitStrategy
reactor.jarjar.com.lmax.disruptor.AlertException
java.lang.InterruptedException
reactor.jarjar.com.lmax.disruptor.TimeoutException
public void signalAllWhenBlocking()
signalAllWhenBlocking
in interface reactor.jarjar.com.lmax.disruptor.WaitStrategy
public void nervous()
WaitingMood
nervous
in interface WaitingMood
public void calm()
WaitingMood
calm
in interface WaitingMood
public reactor.jarjar.com.lmax.disruptor.WaitStrategy current()