public interface TaskReference
SchedulerService.
TaskReference allows getting a report after each execution of the
attached Task.| Modifier and Type | Method and Description |
|---|---|
void |
cancel(boolean interrupt)
Cancels all non-running (and optionally interrupt currently-running)
executions of this task and returns immediately.
|
long |
getCancellationTime()
Gets the cancellation time of this task if it has been canceled,
-1 otherwise. |
TaskExecutionReport[] |
getExecutionReports()
Gets the reports of all the completed executions of this task.
|
long |
getRegistrationTime()
Gets the time of registration of this task.
|
boolean |
isCancelled()
|
long getRegistrationTime()
void cancel(boolean interrupt)
Currently running executions of this task are interrupted (see
Thread.interrupt()) if the interrupt parameter is set to
true, otherwise they can continue until they terminate.
Calling this method has no effect if this task is already canceled (see
isCancelled().
interrupt - true if the currently running executions of this task
must be immediately interrupted, false otherwise.isCancelled()boolean isCancelled()
true if this task was canceled, false otherwise.cancel(boolean)long getCancellationTime()
-1 otherwise.-1 otherwise.isCancelled()TaskExecutionReport[] getExecutionReports()
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.