Use the ImmediateScheduler.instance() to get a shared, stateless instance of this scheduler. This scheduler is NOT time-capable (can't schedule with delay / periodically).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Disposable | |
| private static final ImmediateScheduler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Scheduler. | createWorker()
Implements reactor. |
| public void | dispose()
Overrides default reactor. |
| public static Scheduler | |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| public Disposable | schedule(Runnable
the task to execute task)Implements reactor. |
| FINISHED | back to summary |
|---|---|
| pack-priv static final Disposable FINISHED | |
| INSTANCE | back to summary |
|---|---|
| private static final ImmediateScheduler INSTANCE | |
| ImmediateScheduler | back to summary |
|---|---|
| private ImmediateScheduler() | |
| createWorker | back to summary |
|---|---|
| public Scheduler. Implements reactor. Doc from reactor. Creates a worker of this Scheduler.
Once the Worker is no longer in use, one should call dispose() on it to
release any resources the particular Scheduler may have used.
It depends on the implementation, but Scheduler Workers should usually run tasks in
FIFO order. Some implementations may entirely delegate the scheduling to an
underlying structure (like an | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides default reactor. Doc from reactor. Instructs this Scheduler to release all resources and reject any new tasks to be executed. The operation is thread-safe. The Scheduler may choose to ignore this instruction. When used in combination with
| |
| instance | back to summary |
|---|---|
| public static Scheduler instance() | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| schedule | back to summary |
|---|---|
| public Disposable schedule(Runnable task) Implements reactor. Doc from reactor. Schedules the non-delayed execution of the given task on this scheduler. This method is safe to be called from multiple threads but there are no ordering guarantees between tasks.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements reactor. |
| public boolean | isDisposed()
Overrides default reactor. |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| public Disposable | schedule(Runnable
the task to schedule task)Implements reactor. |
| shutdown | back to summary |
|---|---|
| pack-priv volatile boolean shutdown | |
| ImmediateSchedulerWorker | back to summary |
|---|---|
| pack-priv ImmediateSchedulerWorker() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements reactor. Doc from reactor. Cancel or dispose the underlying task or resource. Implementations are required to make this method idempotent.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Overrides default reactor. Doc from reactor. Optionally return true when the resource or task is disposed. Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.
| |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| schedule | back to summary |
|---|---|
| public Disposable schedule(Runnable task) Implements reactor. Doc from reactor. Schedules the task for immediate execution on this worker.
| |