Uses of Interface
org.agrona.concurrent.IdleStrategy
-
Packages that use IdleStrategy Package Description org.agrona.concurrent Concurrent data structures and utilities that support both on and off Java heap usage. -
-
Uses of IdleStrategy in org.agrona.concurrent
Classes in org.agrona.concurrent that implement IdleStrategy Modifier and Type Class Description class
BackoffIdleStrategy
Idling strategy for threads when they have no work to do.class
BusySpinIdleStrategy
Busy spin strategy targeted at lowest possible latency.class
ControllableIdleStrategy
IdleStrategy
which can be controlled by a counter so its mode of operation can be switched between doing nothing (NOOP), busy spinning by callingThread.onSpinWait()
, yielding by callingThread.yield()
, or sleeping for the minimum period by callingLockSupport.parkNanos(long)
when work count is zero, so it idles.class
NoOpIdleStrategy
Low-latency idle strategy to be employed in loops that do significant work on each iteration such that any work in the idle strategy would be wasteful.class
SleepingIdleStrategy
When idle this strategy is to sleep for a specified period in nanoseconds.class
SleepingMillisIdleStrategy
When idle this strategy is to sleep for a specified period time in milliseconds.class
YieldingIdleStrategy
IdleStrategy
that will callThread.yield()
when the work count is zero.Fields in org.agrona.concurrent declared as IdleStrategy Modifier and Type Field Description private IdleStrategy
AgentRunner. idleStrategy
Methods in org.agrona.concurrent with parameters of type IdleStrategy Modifier and Type Method Description private void
AgentRunner. doWork(IdleStrategy idleStrategy, Agent agent)
private void
AgentRunner. workLoop(IdleStrategy idleStrategy, Agent agent)
Constructors in org.agrona.concurrent with parameters of type IdleStrategy Constructor Description AgentRunner(IdleStrategy idleStrategy, ErrorHandler errorHandler, AtomicCounter errorCounter, Agent agent)
Create an agent runner and initialise it.
-