public interface StreamProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
drainAndStop(Duration timeout)
Stop computations when input streams are empty.
|
long |
getLowWatermark()
Return the low watermark for all the computations of the topology.
|
long |
getLowWatermark(String computationName)
Return the low watermark for the computation.
|
StreamProcessor |
init(Topology topology,
Settings settings)
Initialize streams, but don't run the computations
|
boolean |
isDone(long timestamp)
Returns true if all messages with a lower timestamp has been processed by the topology.
|
void |
shutdown()
Shutdown immediately.
|
void |
start()
Run the initialized computations.
|
boolean |
stop(Duration timeout)
Try to stop computations gracefully after processing a record or a timer within the timeout duration.
|
boolean |
waitForAssignments(Duration timeout)
Wait for the computations to have assigned partitions ready to process records.
|
StreamProcessor init(Topology topology, Settings settings)
void start()
boolean stop(Duration timeout)
boolean drainAndStop(Duration timeout)
true
if computations are stopped during the timeout delay.void shutdown()
long getLowWatermark(String computationName)
long getLowWatermark()
boolean isDone(long timestamp)
boolean waitForAssignments(Duration timeout) throws InterruptedException
true
if all computations have assigned partitions during the timeout delay.InterruptedException
Copyright © 2018 Nuxeo. All rights reserved.