Package org.apache.druid.frame.processor
Class AwaitAnyWidget
java.lang.Object
org.apache.druid.frame.processor.AwaitAnyWidget
Helper used by
FrameProcessorExecutor.runFully(org.apache.druid.frame.processor.FrameProcessor<T>, java.lang.String) when workers return ReturnOrAwait.awaitAny(it.unimi.dsi.fastutil.ints.IntSet).
The main idea is to reuse listeners from previous calls to awaitAny(IntSet) in cases where a particular
channel has not receieved any input since the last call. (Otherwise, listeners would pile up.)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<?>awaitAny(it.unimi.dsi.fastutil.ints.IntSet awaitSet) Returns a future that resolves when any channel in the provided set is ready for reading.
-
Constructor Details
-
AwaitAnyWidget
-
-
Method Details
-
awaitAny
public com.google.common.util.concurrent.ListenableFuture<?> awaitAny(it.unimi.dsi.fastutil.ints.IntSet awaitSet) Returns a future that resolves when any channel in the provided set is ready for reading. Numbers in this set correspond to positions in thechannelslist.
-