R - Type of the result of the task.public class DurableBackgroundTaskResult<R> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R> DurableBackgroundTaskResult<R> |
complete()
Creation of a completed task execution result that does not require restarting it.
|
static <R> DurableBackgroundTaskResult<R> |
complete(R res)
Creation of a completed task execution result that does not require restarting it.
|
static <R> DurableBackgroundTaskResult<R> |
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 <R> DurableBackgroundTaskResult<R> |
restart(@Nullable Throwable err)
Creation of a task execution result that requires its restart.
|
R |
result()
Getting the result of the task.
|
String |
toString() |
public static <R> DurableBackgroundTaskResult<R> complete(@Nullable @Nullable Throwable err)
err - An error occurred while executing the task.public static <R> DurableBackgroundTaskResult<R> complete(@Nullable R res)
res - Result of the task.public static <R> DurableBackgroundTaskResult<R> complete()
public static <R> DurableBackgroundTaskResult<R> 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()
@Nullable public R result()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023