public class CancellableTask extends Task
Task.Status
Constructor and Description |
---|
CancellableTask(long id,
String type,
String action,
String description) |
CancellableTask(long id,
String type,
String action,
String description,
TaskId parentTaskId) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelOnParentLeaving()
Returns true if this task should be automatically cancelled if the coordinating node that
requested this task left the cluster.
|
String |
getReasonCancelled()
The reason the task was cancelled or null if it hasn't been cancelled.
|
boolean |
isCancelled() |
getAction, getDescription, getId, getParentTaskId, getStartTime, getStatus, getType, taskInfo
public boolean cancelOnParentLeaving()
public boolean isCancelled()
public String getReasonCancelled()
Copyright © 2009–2016. All rights reserved.