public class WaterMarkEventGenerator<T>
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
WaterMarkEventGenerator(WindowManager<T> windowManager,
int intervalMs,
int eventTsLagMs,
java.util.Set<GlobalStreamId> inputStreams)
Creates a new WatermarkEventGenerator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
shutdown() |
void |
start() |
boolean |
track(GlobalStreamId stream,
long ts)
Tracks the timestamp of the event in the stream, returns true if the event can
be considered for processing or false if its a late
event.
|
public WaterMarkEventGenerator(WindowManager<T> windowManager, int intervalMs, int eventTsLagMs, java.util.Set<GlobalStreamId> inputStreams)
windowManager - The window manager this generator will submit watermark events tointervalMs - The generator will check if it should generate a watermark event
with this intervaleventTsLagMs - The max allowed lag behind the last watermark event before an
event is considered lateinputStreams - The input streams this generator is expected to handlepublic boolean track(GlobalStreamId stream, long ts)
public void run()
run in interface java.lang.Runnablepublic void start()
public void shutdown()