private class CurrentTaskFuture.DownAllTheWay extends java.lang.Object implements java.lang.Runnable, CurrentTaskFuture.AllTheWay
Modifier and Type | Field and Description |
---|---|
private boolean |
cancelled |
private boolean |
done |
private boolean |
downHardCancelled |
private CurrentTaskFuture |
future |
private int |
goingTo |
private CurrentTaskFuture.HardCancelDownTimer |
hardCancelDownTimer |
private java.lang.Throwable |
lastError |
private ActiveDescriptor<?> |
lastErrorDescriptor |
private java.util.List<ServiceHandle<RunLevelListener>> |
listeners |
private java.util.List<ActiveDescriptor<?>> |
queue |
private boolean |
repurposed |
private int |
workingOn |
Constructor and Description |
---|
DownAllTheWay(int goingTo,
CurrentTaskFuture future,
java.util.List<ServiceHandle<RunLevelListener>> listeners) |
Modifier and Type | Method and Description |
---|---|
private void |
cancel() |
private int |
getGoingTo() |
void |
run() |
private void |
setGoingTo(int goingTo,
boolean repurposed) |
java.lang.Boolean |
waitForResult(long timeout,
java.util.concurrent.TimeUnit unit)
The method to call on the internal job
|
private int goingTo
private CurrentTaskFuture future
private final java.util.List<ServiceHandle<RunLevelListener>> listeners
private int workingOn
private boolean cancelled
private boolean done
private boolean repurposed
private java.lang.Throwable lastError
private ActiveDescriptor<?> lastErrorDescriptor
private java.util.List<ActiveDescriptor<?>> queue
private boolean downHardCancelled
private CurrentTaskFuture.HardCancelDownTimer hardCancelDownTimer
public DownAllTheWay(int goingTo, CurrentTaskFuture future, java.util.List<ServiceHandle<RunLevelListener>> listeners)
private void cancel()
private void setGoingTo(int goingTo, boolean repurposed)
private int getGoingTo()
public void run()
run
in interface java.lang.Runnable
public java.lang.Boolean waitForResult(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, MultiException
CurrentTaskFuture.AllTheWay
waitForResult
in interface CurrentTaskFuture.AllTheWay
timeout
- The amount of time to wait for a resultunit
- The unit of the above time valuejava.lang.InterruptedException
- On a thread getting jackedMultiException
- Other exceptions