Class WatermarkMonotonicInterval
java.lang.Object
org.nuxeo.lib.stream.computation.internals.WatermarkMonotonicInterval
Keep track of minimum and maximum watermark level. On checkpoint move the low watermark to the previous maximum mark.
- Since:
- 9.3
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
low
-
lowest
-
high
-
-
Constructor Details
-
WatermarkMonotonicInterval
public WatermarkMonotonicInterval()
-
-
Method Details
-
mark
public long mark(long watermarkValue) Take in account the watermark.- Implementation Note:
- Not thread safe.
-
mark
Take in account the watermark.- Implementation Note:
- Not thread safe.
-
checkpoint
public long checkpoint()Move the low watermark to the highest mark. Returns the low watermark that should be monotonic (the value returned here never decrease).- Implementation Note:
- Not thread safe.
-
isDone
public boolean isDone(long timestamp) -
getLow
Returns the low mark. The value can decrease but not under the last checkpoint value.- Implementation Note:
- Thread safe usage.
-
getHigh
-
toString
-