private final class TrustedListenableFutureTask.TrustedFutureInterruptibleAsyncTask extends InterruptibleTask<ListenableFuture<V>>
Modifier and Type | Field and Description |
---|---|
private AsyncCallable<V> |
callable |
Constructor and Description |
---|
TrustedFutureInterruptibleAsyncTask(AsyncCallable<V> callable) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
afterRanInterruptibly(ListenableFuture<V> result,
java.lang.Throwable error)
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) ListenableFuture<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, toString
private final AsyncCallable<V> callable
TrustedFutureInterruptibleAsyncTask(AsyncCallable<V> callable)
final boolean isDone()
InterruptibleTask
isDone
in class InterruptibleTask<ListenableFuture<V>>
ListenableFuture<V> runInterruptibly() throws java.lang.Exception
InterruptibleTask
runInterruptibly
in class InterruptibleTask<ListenableFuture<V>>
java.lang.Exception
void afterRanInterruptibly(ListenableFuture<V> result, java.lang.Throwable error)
InterruptibleTask
afterRanInterruptibly
in class InterruptibleTask<ListenableFuture<V>>
java.lang.String toPendingString()
toPendingString
in class InterruptibleTask<ListenableFuture<V>>