I am using PatternTimeoutFunction
for discarding the event sequence when it falls out of the defined time window.
I am setting the watermark as follows
public Watermark checkAndGetNextWatermark(Event lastElement, long extractedTimestamp) {
return new Watermark(extractedTimestamp);
}
When pattern timeout happens, timeoutTimestamp
should be equal to first event timestamp + value of timewindow
But timeout is triggering after receiving the next watermark. Is timeout triggered after receiving next watermark or based on timeWindow
expiry?