public class DurableBackgroundTaskState 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 task,
@Nullable GridFutureAdapter<Void> outFut,
boolean saved)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable GridFutureAdapter<Void> |
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 |
task()
Getting durable background task.
|
String |
toString() |
public DurableBackgroundTaskState(DurableBackgroundTask task, @Nullable @Nullable GridFutureAdapter<Void> outFut, boolean saved)
task - Durable background task.outFut - Outside task future.saved - Task has been saved to the MetaStorage.public DurableBackgroundTask task()
@Nullable public @Nullable GridFutureAdapter<Void> 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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021