Class ParallelMergeCombiningSequence.CancellationFuture
java.lang.Object
com.google.common.util.concurrent.internal.InternalFutureFailureAccess
com.google.common.util.concurrent.AbstractFuture<Boolean>
org.apache.druid.java.util.common.guava.ParallelMergeCombiningSequence.CancellationFuture
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<Boolean>,Future<Boolean>
- Enclosing class:
ParallelMergeCombiningSequence<T>
public static class ParallelMergeCombiningSequence.CancellationFuture
extends com.google.common.util.concurrent.AbstractFuture<Boolean>
ListenableFuture that allows ParallelMergeCombiningSequence to be
registered with QueryWatcher.registerQueryFuture(org.apache.druid.query.Query<?>, com.google.common.util.concurrent.ListenableFuture<?>) to participate in query
cancellation or anything else that has a need to watch the activity on the merge pool. Wraps a
ParallelMergeCombiningSequence.CancellationGizmo to allow for external threads to signal cancellation of parallel processing on the pool
by triggering ParallelMergeCombiningSequence.CancellationGizmo.cancel(Throwable) whenever cancel(boolean) is called.
This is not used internally by workers on the pool in favor of using the much simpler ParallelMergeCombiningSequence.CancellationGizmo
directly instead.-
Constructor Summary
ConstructorsConstructorDescriptionCancellationFuture(ParallelMergeCombiningSequence.CancellationGizmo cancellationGizmo) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) booleanbooleansetException(Throwable throwable) Methods inherited from class com.google.common.util.concurrent.AbstractFuture
addListener, afterDone, get, get, interruptTask, isCancelled, isDone, pendingToString, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted
-
Constructor Details
-
CancellationFuture
-
-
Method Details