public class JsonObjectStreamSource extends BasicSource
| Constructor and Description |
|---|
JsonObjectStreamSource(ConfigLoadContext sc,
org.json.JSONObject config) |
| Modifier and Type | Method and Description |
|---|---|
protected MessageAndRouting |
internalGetNextMessage(StreamProcessingContext spc)
Get the next pending message, if any.
|
boolean |
isEof()
Is the source at EOF? Not all sources are bounded, so they may
always return false.
|
void |
submit(org.json.JSONObject msg)
Submit a JSON object for processing through this source.
|
close, getBackoffTimes, getNextMessage, makeDefRoutingMessage, markComplete, noteEndOfStream, requeuepublic JsonObjectStreamSource(ConfigLoadContext sc, org.json.JSONObject config) throws Builder.BuildFailure
Builder.BuildFailurepublic void submit(org.json.JSONObject msg)
msg - public boolean isEof()
SourceisEof in interface SourceisEof in class BasicSourceprotected MessageAndRouting internalGetNextMessage(StreamProcessingContext spc) throws IOException, InterruptedException
BasicSourceinternalGetNextMessage in class BasicSourceIOExceptionInterruptedExceptionCopyright © 2021 continual.io. All rights reserved.