public class AwaitAnyWidget extends Object
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 and Description |
|---|
AwaitAnyWidget(List<ReadableFrameChannel> channels) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public AwaitAnyWidget(List<ReadableFrameChannel> channels)
public com.google.common.util.concurrent.ListenableFuture<?> awaitAny(it.unimi.dsi.fastutil.ints.IntSet awaitSet)
channels list.Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.