public interface Source extends Closeable
| Modifier and Type | Method and Description |
|---|---|
MessageAndRouting |
getNextMessage(StreamProcessingContext spc,
long waitAtMost,
TimeUnit waitAtMostTimeUnits)
Get the next message from this source.
|
boolean |
isEof()
Is the source at EOF? Not all sources are bounded, so they may
always return false.
|
void |
markComplete(StreamProcessingContext spc,
MessageAndRouting mr)
Called by the processing engine when processing for a given message is complete.
|
default void |
open()
Called when source reader begins.
|
void |
requeue(MessageAndRouting msgAndRoute)
Requeue a message for delivery into the given pipeline
|
default void open()
throws IOException
IOExceptionboolean isEof()
throws IOException
IOExceptionMessageAndRouting getNextMessage(StreamProcessingContext spc, long waitAtMost, TimeUnit waitAtMostTimeUnits) throws IOException, InterruptedException
IOExceptionInterruptedExceptionvoid requeue(MessageAndRouting msgAndRoute)
msgAndRoute - void markComplete(StreamProcessingContext spc, MessageAndRouting mr)
spc - mr - Copyright © 2022 continual.io. All rights reserved.