TimerFunction represents a function to invoke at a scheduled
time. Scheduling a timer yields a
TimerRef, which can be used to
check the status of the timer, to reschedule it, and to cancel it. A
Timer represents a stateful
TimerFunction, with lifecycle callbacks,
TimerContext that enables self-management.
TaskFunction represents a function to invoke as a sequential
process in a concurrent environment. Registering a task yields a
TaskRef, which is used to cue the task for execution. A
represents a stateful
TaskFunction, with lifecycle callbacks, and a
TaskContext that enables self-management. A
Task is like a
primitive actor that
lacks a builtin mailbox.
Cont represents the continuation of an asynchronous operation.
Cont has factory functions to construct various
Sync implements a synchronous
continues the current thread of execution after an asynchronous operation
Call provides a handle used to eventually complete an
asynchronous operation by invoking a
Continuation. Although a
Continuation can be completed directly, by invoking
Cont.trap(Throwable), completeing a
Continuation through a
Call abstracts over the execution
context in which the
Continuation runs. For example, a
Stage.call(Cont) invokes its bound
in an asynchronous task, preventing unbounded stack growth from occurring
when chaining large numbers of
Interface Summary Interface Description Call<T>Handle used to eventually complete an asynchronous operation by invoking a
Cont<T>Continuation of an asynchronous operation. MainStage
Stagethat can be started and stopped.
PreemptiveFunction interface that callers can optionally invoke concurrently. PullContext<T> PullRequest<T> ScheduleTimetable for executing timers at their scheduled times. ScheduleDefMarker interface for a
StageAn execution context in which to schedule tasks, create continuation calls, and set timers. StageDefMarker interface for a
Stay<T>Backpressure aware continuation. StayContextSource that can delay continuations. Task TaskContext TaskFunctionFunction to invoke as a sequential process on a concurrent execution
TaskRef Timer TimerContext TimerFunctionFunction to invoke at a scheduled time. TimerRef
Class Summary Class Description AbstractTaskSkeletal implementation of a stateful
AbstractTimerSkeletal implementation of a stateful
ClockHashed wheel timer
ClockDef ConcurrentTrancheQueue<T> PushRequest<T> SideStage
Stagewrapper that prevents its underlying stage from being started and stopped.
Continuation whose completion can be synchronously awaited.
Stagethat executes timers, tasks, and continuations on a
Exception Summary Exception Description ContException DropExceptionUsed to trap a continuation when a
ScheduleExceptionThrown when a
Scheduleencounters an error.
SyncExceptionThrown when awaiting a
Synccontinuation times out.
TaskExceptionThrown when performing an invalid operation on a
TimerExceptionThrown when performing an invalid operation on a