Interface StreamElementQueueEntry<OUT>
-
- All Superinterfaces:
ResultFuture<OUT>
- All Known Implementing Classes:
StreamRecordQueueEntry
@Internal public interface StreamElementQueueEntry<OUT> extends ResultFuture<OUT>
An entry for theStreamElementQueue. The stream element queue entry stores theStreamElementfor which the stream element queue entry has been instantiated. Furthermore, it allows to set the result of a completed entry throughResultFuture.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcomplete(CollectionSupplier<OUT> supplier)The same as complete, but will execute the supplier on the Mailbox thread which initiated the asynchronous process.default voidcompleteExceptionally(Throwable error)Not supported.voidemitResult(org.apache.flink.streaming.api.operators.TimestampedCollector<OUT> output)Emits the results associated with this queue entry.org.apache.flink.streaming.runtime.streamrecord.StreamElementgetInputElement()The input element for this queue entry, for which the calculation is performed asynchronously.booleanisDone()True if the stream element queue entry has been completed; otherwise false.-
Methods inherited from interface org.apache.flink.streaming.api.functions.async.ResultFuture
complete
-
-
-
-
Method Detail
-
isDone
boolean isDone()
True if the stream element queue entry has been completed; otherwise false.- Returns:
- True if the stream element queue entry has been completed; otherwise false.
-
emitResult
void emitResult(org.apache.flink.streaming.api.operators.TimestampedCollector<OUT> output)
Emits the results associated with this queue entry.- Parameters:
output- the output into which to emit.
-
getInputElement
@Nonnull org.apache.flink.streaming.runtime.streamrecord.StreamElement getInputElement()
The input element for this queue entry, for which the calculation is performed asynchronously.- Returns:
- the input element.
-
completeExceptionally
default void completeExceptionally(Throwable error)
Not supported. Exceptions must be handled in the AsyncWaitOperator.- Specified by:
completeExceptionallyin interfaceResultFuture<OUT>- Parameters:
error- A Throwable object.
-
complete
default void complete(CollectionSupplier<OUT> supplier)
Description copied from interface:ResultFutureThe same as complete, but will execute the supplier on the Mailbox thread which initiated the asynchronous process.Note that if an exception is thrown while executing the supplier, the result should be the same as calling
ResultFuture.completeExceptionally(Throwable).- Specified by:
completein interfaceResultFuture<OUT>
-
-