Interface ProcessingTimeService
-
@PublicEvolving public interface ProcessingTimeServiceA service that allows to get the current processing time and register timers that will execute the givenProcessingTimeService.ProcessingTimeCallbackwhen firing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceProcessingTimeService.ProcessingTimeCallbackA callback that can be registered viaregisterTimer(long, ProcessingTimeCallback).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCurrentProcessingTime()Returns the current processing time.ScheduledFuture<?>registerTimer(long timestamp, ProcessingTimeService.ProcessingTimeCallback target)Registers a task to be executed when (processing) time istimestamp.
-
-
-
Method Detail
-
getCurrentProcessingTime
long getCurrentProcessingTime()
Returns the current processing time.
-
registerTimer
ScheduledFuture<?> registerTimer(long timestamp, ProcessingTimeService.ProcessingTimeCallback target)
Registers a task to be executed when (processing) time istimestamp.- Parameters:
timestamp- Time when the task is to be executed (in processing time)target- The task to be executed- Returns:
- The future that represents the scheduled task. This always returns some future, even if the timer was shut down
-
-