Interface EventTimeManager
-
@Experimental public interface EventTimeManagerThis class is responsible for managing stuff related to event-time/timer. For example, register and delete event timers, as well as retrieve event time. Note that methods for timer can only be used inKeyedPartitionStream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcurrentTime()Get the current event time.voiddeleteTimer(long timestamp)Deletes the event-time timer with the given trigger timestamp.voidregisterTimer(long timestamp)Register an event timer for this process function.
-
-
-
Method Detail
-
registerTimer
void registerTimer(long timestamp)
Register an event timer for this process function. TheonEventTimermethod will be invoked when the event time is reached.- Parameters:
timestamp- to trigger timer callback.
-
deleteTimer
void deleteTimer(long timestamp)
Deletes the event-time timer with the given trigger timestamp. This method has only an effect if such a timer was previously registered and did not already expire.- Parameters:
timestamp- indicates the timestamp of the timer to delete.
-
currentTime
long currentTime()
Get the current event time.- Returns:
- current event time.
-
-