Class CombinedFuture.AsyncCallableInterruptibleTask
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicReference<java.lang.Runnable>
-
- com.google.common.util.concurrent.InterruptibleTask<T>
-
- com.google.common.util.concurrent.CombinedFuture.CombinedFutureInterruptibleTask<ListenableFuture<V>>
-
- com.google.common.util.concurrent.CombinedFuture.AsyncCallableInterruptibleTask
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Runnable
- Enclosing class:
- CombinedFuture<V>
private final class CombinedFuture.AsyncCallableInterruptibleTask extends CombinedFuture.CombinedFutureInterruptibleTask<ListenableFuture<V>>
-
-
Field Summary
Fields Modifier and Type Field Description private AsyncCallable<V>
callable
-
Constructor Summary
Constructors Constructor Description AsyncCallableInterruptibleTask(AsyncCallable<V> callable, java.util.concurrent.Executor listenerExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ListenableFuture<V>
runInterruptibly()
Do interruptible work here - do not complete Futures here, as their listeners could be interrupted.(package private) void
setValue(ListenableFuture<V> value)
(package private) java.lang.String
toPendingString()
-
Methods inherited from class com.google.common.util.concurrent.CombinedFuture.CombinedFutureInterruptibleTask
afterRanInterruptibly, execute, isDone
-
Methods inherited from class com.google.common.util.concurrent.InterruptibleTask
interruptTask, run, toString
-
Methods inherited from class java.util.concurrent.atomic.AtomicReference
accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Field Detail
-
callable
private final AsyncCallable<V> callable
-
-
Constructor Detail
-
AsyncCallableInterruptibleTask
AsyncCallableInterruptibleTask(AsyncCallable<V> callable, java.util.concurrent.Executor listenerExecutor)
-
-
Method Detail
-
runInterruptibly
ListenableFuture<V> runInterruptibly() throws java.lang.Exception
Description copied from class:InterruptibleTask
Do interruptible work here - do not complete Futures here, as their listeners could be interrupted.- Specified by:
runInterruptibly
in classInterruptibleTask<ListenableFuture<V>>
- Throws:
java.lang.Exception
-
setValue
void setValue(ListenableFuture<V> value)
- Specified by:
setValue
in classCombinedFuture.CombinedFutureInterruptibleTask<ListenableFuture<V>>
-
toPendingString
java.lang.String toPendingString()
- Specified by:
toPendingString
in classInterruptibleTask<ListenableFuture<V>>
-
-