Interface JobScheduler.Submission

Enclosing interface:
JobScheduler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface JobScheduler.Submission
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    A submission that cannot be withdrawn, because the job has already run or its scheduler does not track it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Withdraw the job if no thread has started it, so that it never runs and the scheduler no longer waits for it.
  • Field Details

    • NOT_WITHDRAWABLE

      static final JobScheduler.Submission NOT_WITHDRAWABLE
      A submission that cannot be withdrawn, because the job has already run or its scheduler does not track it.
  • Method Details

    • withdraw

      void withdraw()
      Withdraw the job if no thread has started it, so that it never runs and the scheduler no longer waits for it. A job that a thread has started, or that cannot be withdrawn, runs as submitted.