the current number of active Runnables and scheduled tasks being processed
precisely delay for a period of time in nanoseconds.
precisely delay for a period of time in nanoseconds. If the elapsed time differs from the requested the delay, the error in delay is accumulated in delayError_ns
the accumulated delay error
Report a failure.
Report a failure. Used to report failures during periodic tasks
the SerializationSchedule for the context
Create a DelayedFuture that executes the supplied function after the given delay
Create a DelayedFuture that executes the supplied function after the given delay
the time from now to delay execution
the function to execute
a DelayedFuture that can be used to extract result
java.util.concurrent.RejectedExecutionException
if the task cannot be
scheduled for execution
Creates a PeriodicTask that executes first after the given initial delay, and subsequently with the given period.
Creates a PeriodicTask that executes first after the given initial delay, and subsequently with the given period. PeriodicTask may stopped using the cancel method. If a failure occurs while processing the task, the task is automatically cancelled. If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.
the time to delay first execution
the period between successive executions
TRUE to start the periodic task paused FALSE to start running
the task to execute
a PeriodicTask
java.lang.IllegalArgumentException
if period less than or equal to zero
java.util.concurrent.RejectedExecutionException
if the task cannot be
scheduled for execution
Create a DelayedFuture that executes the supplied function after the given delay
Create a DelayedFuture that executes the supplied function after the given delay
the time from now to delay execution
the value to return if the future is cancelled
the function to execute
a DelayedFuture that can be used to extract result or cancel (only before it has been started)
java.util.concurrent.RejectedExecutionException
if the task cannot be
scheduled for execution
Sleep until the active execution count is equal to or less than the specified value
A context for testing concurrent code that provides: 1) an ExecutionContext that keeps track of the number of active and completed Runnables 2) a Timer for tracking elapsed duration since start of test 3) a SerializationSchedule for detecting order of execution of events 4) a precision delay function that accumulates any delay error