Package cz.o2.proxima.direct.core.time
Class SkewedProcessingTimeIdlePolicy
- java.lang.Object
-
- cz.o2.proxima.direct.core.time.SkewedProcessingTimeIdlePolicy
-
- All Implemented Interfaces:
WatermarkIdlePolicy
,java.io.Serializable
public class SkewedProcessingTimeIdlePolicy extends java.lang.Object implements WatermarkIdlePolicy
Policy returns skewed (delayed) processing time when source is idle.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SkewedProcessingTimeIdlePolicy.Factory
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_TIMESTAMP_SKEW
static java.lang.String
TIMESTAMP_SKEW
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getIdleWatermark()
Returns watermark for idle source.void
idle(long currentWatermark)
Signals that a source is idle.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.time.WatermarkIdlePolicy
update
-
-
-
-
Field Detail
-
TIMESTAMP_SKEW
public static final java.lang.String TIMESTAMP_SKEW
- See Also:
- Constant Field Values
-
DEFAULT_TIMESTAMP_SKEW
public static final long DEFAULT_TIMESTAMP_SKEW
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdleWatermark
public long getIdleWatermark()
Description copied from interface:WatermarkIdlePolicy
Returns watermark for idle source.- Specified by:
getIdleWatermark
in interfaceWatermarkIdlePolicy
- Returns:
- the watermark.
-
idle
public void idle(long currentWatermark)
Description copied from interface:WatermarkIdlePolicy
Signals that a source is idle.- Specified by:
idle
in interfaceWatermarkIdlePolicy
- Parameters:
currentWatermark
- the most recent watermark estimated by watermark estimatorWatermarkEstimator
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-