@Internal public class ProcessingTimeServiceUtil extends Object
ProcessingTimeService interface.| Constructor and Description |
|---|
ProcessingTimeServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getProcessingTimeDelay(long processingTimestamp,
long currentTimestamp)
Returns the remaining delay of the processing time specified by
processingTimestamp. |
public static long getProcessingTimeDelay(long processingTimestamp,
long currentTimestamp)
processingTimestamp.
This delay guarantees that the timer will be fired at least 1ms after the time it's
registered for.processingTimestamp - the processing time in millisecondscurrentTimestamp - the current processing timestamp; it usually uses ProcessingTimeService.getCurrentProcessingTime() to getCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.