| Package | Description |
|---|---|
| org.iota.jota.utils.thread |
| Modifier and Type | Method and Description |
|---|---|
TaskDetails |
TaskDetails.setDelay(Long delay)
Setter for the internal
delay property. |
TaskDetails |
TaskDetails.setInterval(Long interval)
Setter for the internal
interval property. |
TaskDetails |
TaskDetails.setTimeout(Long timeout)
Setter for the internal
timeout property. |
TaskDetails |
TaskDetails.setTimeUnit(TimeUnit timeUnit)
Setter for the internal
timeUnit property. |
| Modifier and Type | Method and Description |
|---|---|
void |
BoundedScheduledExecutorService.onCancelTask(TaskDetails taskDetails) |
void |
UnboundScheduledExecutorService.onCancelTask(TaskDetails taskDetails) |
void |
ReportingExecutorService.onCancelTask(TaskDetails taskDetails)
This method gets called whenever a task is cancelled through its
Future or through
the shutdown methods of the ExecutorService.It only gets called once for every task. |
void |
DedicatedScheduledExecutorService.onCancelTask(TaskDetails taskDetails)
This method gets called whenever a task is cancelled through its
Future or through
the shutdown methods of the ExecutorService.It only gets called once for every task. |
void |
BoundedScheduledExecutorService.onCompleteTask(TaskDetails taskDetails,
Throwable error)
This method gets called whenever a task completes.
This can be through either raising an exception, cancelling from the outside or by simply terminating in a normal manner. |
void |
UnboundScheduledExecutorService.onCompleteTask(TaskDetails taskDetails,
Throwable error)
This method gets called whenever a task completes.
This can be through either raising an exception, cancelling from the outside or by simply terminating in a normal manner. |
void |
ReportingExecutorService.onCompleteTask(TaskDetails taskDetails,
Throwable error)
This method gets called whenever a task completes.
This can be through either raising an exception, cancelling from the outside or by simply terminating in a normal manner. |
void |
DedicatedScheduledExecutorService.onCompleteTask(TaskDetails taskDetails,
Throwable error)
This method gets called whenever a task completes.
This can be through either raising an exception, cancelling from the outside or by simply terminating in a normal manner. |
void |
BoundedScheduledExecutorService.onFinishTask(TaskDetails taskDetails,
Throwable error) |
void |
UnboundScheduledExecutorService.onFinishTask(TaskDetails taskDetails,
Throwable error) |
void |
ReportingExecutorService.onFinishTask(TaskDetails taskDetails,
Throwable error)
This method gets called whenever a task is finished.
For recurring tasks it is called multiple times. |
void |
DedicatedScheduledExecutorService.onFinishTask(TaskDetails taskDetails,
Throwable error)
This method gets called whenever a task is finished.
For recurring tasks it is called multiple times. |
void |
BoundedScheduledExecutorService.onScheduleTask(TaskDetails taskDetails)
This method gets called whenever a new task is scheduled to run.
In contrast to ReportingExecutorService.onStartTask(TaskDetails) this method gets called only once for "recurring" tasks that are
scheduled to run in pre-defined intervals. |
void |
UnboundScheduledExecutorService.onScheduleTask(TaskDetails taskDetails)
This method gets called whenever a new task is scheduled to run.
In contrast to ReportingExecutorService.onStartTask(TaskDetails) this method gets called only once for "recurring" tasks that are
scheduled to run in pre-defined intervals. |
void |
ReportingExecutorService.onScheduleTask(TaskDetails taskDetails)
This method gets called whenever a new task is scheduled to run.
In contrast to ReportingExecutorService.onStartTask(TaskDetails) this method gets called only once for "recurring" tasks that are
scheduled to run in pre-defined intervals. |
void |
DedicatedScheduledExecutorService.onScheduleTask(TaskDetails taskDetails)
This method gets called whenever a new task is scheduled to run.
In contrast to ReportingExecutorService.onStartTask(TaskDetails) this method gets called only once for "recurring" tasks that are
scheduled to run in pre-defined intervals. |
void |
BoundedScheduledExecutorService.onStartTask(TaskDetails taskDetails) |
void |
UnboundScheduledExecutorService.onStartTask(TaskDetails taskDetails) |
void |
ReportingExecutorService.onStartTask(TaskDetails taskDetails)
This method gets called whenever a task is started.
For recurring tasks it is called multiple times. |
void |
DedicatedScheduledExecutorService.onStartTask(TaskDetails taskDetails)
This method gets called whenever a task is started.
For recurring tasks it is called multiple times. |
Copyright © 2019. All rights reserved.