| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Disposable. | disposables
Cleanup tasks to be performed when this worker is |
| pack-priv final ScheduledExecutorService | exec
The |
| 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. |
| public Disposable | schedule(Runnable
the task to schedule task, long the delay amount, non-positive values indicate non-delayed scheduling delay, TimeUnit the unit of measure of the delay amount unit)Overrides default reactor. |
| public Disposable | schedulePeriodically(Runnable
the task to schedule task, long the initial delay amount, non-positive values indicate non-delayed scheduling initialDelay, long the period at which the task should be re-executed period, TimeUnit the unit of measure of the delay amount unit)Overrides default reactor. |
| disposables | back to summary |
|---|---|
| pack-priv final Disposable. Cleanup tasks to be performed when this worker is | |
| exec | back to summary |
|---|---|
| pack-priv final ScheduledExecutorService exec The | |
| ExecutorServiceWorker | back to summary |
|---|---|
| pack-priv ExecutorServiceWorker(ScheduledExecutorService exec) | |
| 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.
| |
| schedule | back to summary |
|---|---|
| public Disposable schedule(Runnable task, long delay, TimeUnit unit) Overrides default reactor. Doc from reactor. Schedules the execution of the given task with the given delay amount. This method is safe to be called from multiple threads and tasks are executed in some total order. Two tasks scheduled at a same time with the same delay will be ordered in FIFO order if the schedule() was called from the same thread or in arbitrary order if the schedule() was called from different threads.
| |
| schedulePeriodically | back to summary |
|---|---|
| public Disposable schedulePeriodically(Runnable task, long initialDelay, long period, TimeUnit unit) Overrides default reactor. Doc from reactor. Schedules a periodic execution of the given task with the given initial delay and period. This method is safe to be called from multiple threads. The periodic execution is at a fixed rate, that is, the first execution will be after the initial delay, the second after initialDelay + period, the third after initialDelay + 2 * period, and so on.
| |