Interface EventTimeManager


  • @Experimental
    public interface EventTimeManager
    This 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 in KeyedPartitionStream.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long currentTime()
      Get the current event time.
      void deleteTimer​(long timestamp)
      Deletes the event-time timer with the given trigger timestamp.
      void registerTimer​(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. The onEventTimer method 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.