Uses of Interface
org.agrona.concurrent.IdleStrategy
Packages that use IdleStrategy
Package
Description
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 IdleStrategyModifier and TypeClassDescriptionfinal class
Idling strategy for threads when they have no work to do.final class
Busy spin strategy targeted at lowest possible latency.final class
IdleStrategy
which can be controlled by a counter so its mode of operation can be switched between doing nothing (NOOP), busy spinning by callingThreadHints.onSpinWait()
, yielding by callingThread.yield()
, or sleeping for the minimum period by callingLockSupport.parkNanos(long)
when work count is zero, so it idles.final class
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.final class
When idle this strategy is to sleep for a specified period in nanoseconds.final class
When idle this strategy is to sleep for a specified period time in milliseconds.final class
IdleStrategy
that will callThread.yield()
when the work count is zero.Fields in org.agrona.concurrent declared as IdleStrategyMethods in org.agrona.concurrent with parameters of type IdleStrategyModifier and TypeMethodDescriptionprivate void
AgentRunner.doWork
(IdleStrategy idleStrategy, Agent agent) private void
AgentRunner.workLoop
(IdleStrategy idleStrategy, Agent agent) Constructors in org.agrona.concurrent with parameters of type IdleStrategyModifierConstructorDescriptionAgentRunner
(IdleStrategy idleStrategy, ErrorHandler errorHandler, AtomicCounter errorCounter, Agent agent) Create an agent runner and initialise it.