Interface CanRunSupplier

All Known Subinterfaces:
RunningLightweightTask, RunningTask
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 interface CanRunSupplier
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the task or any similar process can run, i.e.
  • Method Details

    • canRun

      boolean canRun()
      Returns true if the task or any similar process can run, i.e. was not interrupted. Will return false e.g. if shutdown was signaled.