public class NullSource extends Object implements Source
| Constructor and Description |
|---|
NullSource(ConfigLoadContext sc,
org.json.JSONObject config) |
NullSource(org.json.JSONObject config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MessageAndRouting |
getNextMessage(StreamProcessingContext spc,
long timeUnit,
TimeUnit units)
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.
|
void |
requeue(MessageAndRouting msg)
Requeue a message for delivery into the given pipeline
|
public NullSource(org.json.JSONObject config)
throws Builder.BuildFailure
Builder.BuildFailurepublic NullSource(ConfigLoadContext sc, org.json.JSONObject config) throws Builder.BuildFailure
Builder.BuildFailurepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isEof()
Sourcepublic MessageAndRouting getNextMessage(StreamProcessingContext spc, long timeUnit, TimeUnit units) throws InterruptedException
SourcegetNextMessage in interface SourceInterruptedExceptionpublic void requeue(MessageAndRouting msg)
Sourcepublic void markComplete(StreamProcessingContext spc, MessageAndRouting mr)
SourcemarkComplete in interface SourceCopyright © 2022 continual.io. All rights reserved.