1u0 commented on a change in pull request #8523: [FLINK-12481][runtime] Invoke timer callback in task thread (via mailbox) URL: https://github.com/apache/flink/pull/8523#discussion_r288425195
########## File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java ########## @@ -1358,4 +1358,19 @@ public void actionsUnavailable() throws InterruptedException { mailbox.putMail(actionUnavailableLetter); } } + + private class TimerInvocationContext implements SystemProcessingTimeService.ScheduledCallbackExecutionContext { Review comment: To clarify. With this change, the `ProcessingTimeCallback` becomes non relevant to `SystemProcessingTimeService`, it can be substituted by any class (e.g. just `Object`) - this object is just passed on timer registration as data and returned back by the time service when the timer fires. The real callback interface now becomes `ScheduledCallbackExecutionContext`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services