Interface InternalTimerService<N>

    • Method Detail

      • currentProcessingTime

        long currentProcessingTime()
        Returns the current processing time.
      • currentWatermark

        long currentWatermark()
        Returns the current event-time watermark.
      • registerProcessingTimeTimer

        void registerProcessingTimeTimer​(N namespace,
                                         long time)
        Registers a timer to be fired when processing time passes the given time. The namespace you pass here will be provided when the timer fires.
      • deleteProcessingTimeTimer

        void deleteProcessingTimeTimer​(N namespace,
                                       long time)
        Deletes the timer for the given key and namespace.
      • registerEventTimeTimer

        void registerEventTimeTimer​(N namespace,
                                    long time)
        Registers a timer to be fired when event time watermark passes the given time. The namespace you pass here will be provided when the timer fires.
      • deleteEventTimeTimer

        void deleteEventTimeTimer​(N namespace,
                                  long time)
        Deletes the timer for the given key and namespace.
      • forEachEventTimeTimer

        void forEachEventTimeTimer​(BiConsumerWithException<N,​Long,​Exception> consumer)
                            throws Exception
        Performs an action for each registered timer. The timer service will set the key context for the timers key before invoking the action.
        Throws:
        Exception
      • forEachProcessingTimeTimer

        void forEachProcessingTimeTimer​(BiConsumerWithException<N,​Long,​Exception> consumer)
                                 throws Exception
        Performs an action for each registered timer. The timer service will set the key context for the timers key before invoking the action.
        Throws:
        Exception