public class DurableBackgroundTaskResult extends Object
| Modifier and Type | Method and Description |
|---|---|
static DurableBackgroundTaskResult |
complete(@Nullable Throwable err)
Creation of a completed task execution result that does not require restarting it.
|
boolean |
completed()
Checking the completion of the task.
|
@Nullable Throwable |
error()
Getting a task execution error.
|
boolean |
restart()
Checking if the task needs to be restarted.
|
static DurableBackgroundTaskResult |
restart(@Nullable Throwable err)
Creation of a task execution result that requires its restart.
|
String |
toString() |
public static DurableBackgroundTaskResult complete(@Nullable @Nullable Throwable err)
err - An error occurred while executing the task.public static DurableBackgroundTaskResult restart(@Nullable @Nullable Throwable err)
err - An error occurred while executing the task.public boolean completed()
True if completed.public boolean restart()
True if the task needs to be restarted.@Nullable public @Nullable Throwable error()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021