Class ProcessingTimeServiceUtil
- java.lang.Object
-
- org.apache.flink.streaming.runtime.tasks.ProcessingTimeServiceUtil
-
@Internal public class ProcessingTimeServiceUtil extends Object
Utility for classes that implements theProcessingTimeServiceinterface.
-
-
Constructor Summary
Constructors Constructor Description ProcessingTimeServiceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longgetProcessingTimeDelay(long processingTimestamp, long currentTimestamp)Returns the remaining delay of the processing time specified byprocessingTimestamp.
-
-
-
Method Detail
-
getProcessingTimeDelay
public static long getProcessingTimeDelay(long processingTimestamp, long currentTimestamp)Returns the remaining delay of the processing time specified byprocessingTimestamp. This delay guarantees that the timer will be fired at least 1ms after the time it's registered for.- Parameters:
processingTimestamp- the processing time in millisecondscurrentTimestamp- the current processing timestamp; it usually usesProcessingTimeService.getCurrentProcessingTime()to get- Returns:
- the remaining delay of the processing time
-
-