Interface WorkloadHandle


public interface WorkloadHandle
Handle for a scheduled workload task.

Implementations must be thread-safe and must not expose scheduler-internal mutable state.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Requests best-effort cancellation.
    ref()
    Returns the task reference.
    Returns the latest task status snapshot.
  • Method Details

    • ref

      TaskRef ref()
      Returns the task reference.
      Returns:
      task reference
    • status

      TaskStatus status()
      Returns the latest task status snapshot.
      Returns:
      latest task status snapshot
    • cancel

      void cancel()
      Requests best-effort cancellation.