Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4346 Implement basic RPC abstraction
  3. FLINK-5799

Let RpcService.scheduleRunnable return ScheduledFuture

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • Runtime / Coordination
    • None

    Description

      Currently, the method RpcService.scheduleRunnable does not return a control instance for the scheduled runnable. I think it would be good to return a ScheduledFuture with which one can cancel the scheduled runnable after it has been scheduled, e.g. a timeout registration which became obsolete. This API is also more in line with the ScheduledExecutorService where one also receives a ScheduledFuture after scheduling a runnable.

      Attachments

        Issue Links

          Activity

            People

              trohrmann Till Rohrmann
              trohrmann Till Rohrmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: