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 classIdling strategy for threads when they have no work to do.final classBusy spin strategy targeted at lowest possible latency.final classIdleStrategywhich 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.final classLow-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 classWhen idle this strategy is to sleep for a specified period in nanoseconds.final classWhen idle this strategy is to sleep for a specified period time in milliseconds.final classIdleStrategythat 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 voidAgentRunner.doWork(IdleStrategy idleStrategy, Agent agent) private voidAgentRunner.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.