@Internal public final class StreamMultipleInputProcessor extends Object implements StreamInputProcessor
MultipleInputStreamOperator
.AvailabilityProvider.AvailabilityHelper
AVAILABLE
Constructor and Description |
---|
StreamMultipleInputProcessor(MultipleInputSelectionHandler inputSelectionHandler,
StreamOneInputProcessor<?>[] inputProcessors) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CompletableFuture<?> |
getAvailableFuture() |
CompletableFuture<Void> |
prepareSnapshot(ChannelStateWriter channelStateWriter,
long checkpointId) |
InputStatus |
processInput()
In case of two and more input processors this method must call
InputSelectable.nextSelection() to choose which input to consume from next. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, isApproximatelyAvailable, isAvailable, or
public StreamMultipleInputProcessor(MultipleInputSelectionHandler inputSelectionHandler, StreamOneInputProcessor<?>[] inputProcessors)
public CompletableFuture<?> getAvailableFuture()
getAvailableFuture
in interface AvailabilityProvider
public InputStatus processInput() throws Exception
StreamInputProcessor
InputSelectable.nextSelection()
to choose which input to consume from next.processInput
in interface StreamInputProcessor
AvailabilityProvider.getAvailableFuture()
.Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public CompletableFuture<Void> prepareSnapshot(ChannelStateWriter channelStateWriter, long checkpointId) throws CheckpointException
prepareSnapshot
in interface StreamInputProcessor
CheckpointException
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.