Interface WorkflowScheduler.ScheduledTask

Enclosing interface:
WorkflowScheduler

public static interface WorkflowScheduler.ScheduledTask
Scheduled task handle.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel the task if it has not run yet.
    Future completed when the deadline is reached, or cancelled when the deadline is cancelled.
  • Method Details

    • completion

      CompletableFuture<Void> completion()
      Future completed when the deadline is reached, or cancelled when the deadline is cancelled.
      Returns:
      completion future
    • cancel

      void cancel()
      Cancel the task if it has not run yet.