Class CombinedFuture.CallableInterruptibleTask
- 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<V>
-
- com.google.common.util.concurrent.CombinedFuture.CallableInterruptibleTask
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Runnable
- Enclosing class:
- CombinedFuture<V>
private final class CombinedFuture.CallableInterruptibleTask extends CombinedFuture.CombinedFutureInterruptibleTask<V>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.Callable<V>
callable
-
Fields inherited from class com.google.common.util.concurrent.CombinedFuture.CombinedFutureInterruptibleTask
thrownByExecute
-
-
Constructor Summary
Constructors Constructor Description CallableInterruptibleTask(java.util.concurrent.Callable<V> callable, java.util.concurrent.Executor listenerExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) V
runInterruptibly()
Do interruptible work here - do not complete Futures here, as their listeners could be interrupted.(package private) void
setValue(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 java.util.concurrent.Callable<V> callable
-
-
Constructor Detail
-
CallableInterruptibleTask
public CallableInterruptibleTask(java.util.concurrent.Callable<V> callable, java.util.concurrent.Executor listenerExecutor)
-
-
Method Detail
-
runInterruptibly
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<V>
- Throws:
java.lang.Exception
-
setValue
void setValue(V value)
- Specified by:
setValue
in classCombinedFuture.CombinedFutureInterruptibleTask<V>
-
toPendingString
java.lang.String toPendingString()
- Specified by:
toPendingString
in classInterruptibleTask<V>
-
-