public class DurableBackgroundTaskState<R> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DurableBackgroundTaskState.State
Enumeration of the current state of the task.
|
| Constructor and Description |
|---|
DurableBackgroundTaskState(DurableBackgroundTask<R> task,
GridFutureAdapter<R> outFut,
boolean saved,
boolean converted)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
converted()
Check if the task has been converted from another.
|
GridFutureAdapter<R> |
outFuture()
Getting outside task future.
|
boolean |
saved()
Check if the task has been saved to the MetaStorage.
|
DurableBackgroundTaskState.State |
state()
Getting current state of the task.
|
void |
state(DurableBackgroundTaskState.State s)
Set the current state of the task.
|
boolean |
state(DurableBackgroundTaskState.State exp,
DurableBackgroundTaskState.State newState)
Atomically sets of the current task state.
|
DurableBackgroundTask<R> |
task()
Getting durable background task.
|
String |
toString() |
public DurableBackgroundTaskState(DurableBackgroundTask<R> task, GridFutureAdapter<R> outFut, boolean saved, boolean converted)
task - Durable background task.outFut - Outside task future.saved - Task has been saved to the MetaStorage.public DurableBackgroundTask<R> task()
public GridFutureAdapter<R> outFuture()
public boolean saved()
True if stored in the MetaStorage.public DurableBackgroundTaskState.State state()
public void state(DurableBackgroundTaskState.State s)
s - New current state of the task.public boolean state(DurableBackgroundTaskState.State exp, DurableBackgroundTaskState.State newState)
exp - Expected state.newState - New state.True if successful.public boolean converted()
True if it was converted from another task.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023