private final class TrustedListenableFutureTask.TrustedFutureInterruptibleTask extends InterruptibleTask<V>
InterruptibleTask.Blocker| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.Callable<V> |
callable |
| Constructor and Description |
|---|
TrustedFutureInterruptibleTask(java.util.concurrent.Callable<V> callable) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
afterRanInterruptiblyFailure(java.lang.Throwable error)
Any interruption that happens as a result of calling interruptTask will arrive before this
method is called.
|
(package private) void |
afterRanInterruptiblySuccess(V result)
Any interruption that happens as a result of calling interruptTask will arrive before this
method is called.
|
(package private) boolean |
isDone()
Called before runInterruptibly - if true, runInterruptibly and afterRanInterruptibly will not
be called.
|
(package private) V |
runInterruptibly()
Do interruptible work here - do not complete Futures here, as their listeners could be
interrupted.
|
(package private) java.lang.String |
toPendingString() |
interruptTask, run, toStringprivate final java.util.concurrent.Callable<V> callable
TrustedFutureInterruptibleTask(java.util.concurrent.Callable<V> callable)
final boolean isDone()
InterruptibleTaskisDone in class InterruptibleTask<V>V runInterruptibly() throws java.lang.Exception
InterruptibleTaskrunInterruptibly in class InterruptibleTask<V>java.lang.Exceptionvoid afterRanInterruptiblySuccess(V result)
InterruptibleTaskafterRanInterruptiblySuccess in class InterruptibleTask<V>void afterRanInterruptiblyFailure(java.lang.Throwable error)
InterruptibleTaskafterRanInterruptiblyFailure in class InterruptibleTask<V>java.lang.String toPendingString()
toPendingString in class InterruptibleTask<V>