public interface ExternalSystemTask
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(ExternalSystemTaskNotificationListener... listeners)
Initiates cancel request.
|
boolean |
cancel(ProgressIndicator indicator,
ExternalSystemTaskNotificationListener... listeners)
Initiates cancel request of the current task and updates given indicator's
status during that. |
void |
execute(ExternalSystemTaskNotificationListener... listeners)
Executes current task at the calling thread, i.e.
|
void |
execute(ProgressIndicator indicator,
ExternalSystemTaskNotificationListener... listeners)
Executes current task and updates given indicator's
status during that. |
java.lang.Throwable |
getError() |
ExternalSystemTaskId |
getId() |
ExternalSystemTaskState |
getState() |
void |
refreshState()
Forces current task to refresh
its state. |
ExternalSystemTaskId getId()
ExternalSystemTaskState getState()
java.lang.Throwable getError()
void execute(ProgressIndicator indicator, ExternalSystemTaskNotificationListener... listeners)
status during that.indicator - target progress indicatorlisteners - callbacks to be notified on task execution updatevoid execute(ExternalSystemTaskNotificationListener... listeners)
listeners - callbacks to be notified about the task execution updateboolean cancel(ProgressIndicator indicator, ExternalSystemTaskNotificationListener... listeners)
status during that.indicator - target progress indicatorlisteners - callbacks to be notified on task execution updateboolean cancel(ExternalSystemTaskNotificationListener... listeners)
listeners - callbacks to be notified about the task execution updatevoid refreshState()
its state.