Interface Condition

All Known Implementing Classes:
NoCondition

public interface Condition
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Waits the current thread until the condition is met.
    boolean
    Check whether the condition is met.
  • Method Details

    • check

      boolean check()
      Check whether the condition is met. Once a condition is met, this method must return true until the corresponding Task has completed execution.
      Returns:
      true if the condition is met. false otherwise.
    • await

      void await() throws InterruptedException
      Waits the current thread until the condition is met.
      Throws:
      InterruptedException - if interrupted while waiting.