public class JsonObjectStreamSource extends BasicSource
| Constructor and Description |
|---|
JsonObjectStreamSource(ServiceContainer sc,
org.json.JSONObject config) |
| Modifier and Type | Method and Description |
|---|---|
protected MessageAndRouting |
internalGetNextMessage(StreamProcessingContext spc,
long timeUnit,
TimeUnit units) |
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(ServiceContainer 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, long timeUnit, TimeUnit units) throws IOException, InterruptedException
internalGetNextMessage in class BasicSourceIOExceptionInterruptedExceptionCopyright © 2020 continual.io. All rights reserved.