Interface Awaitable


public interface Awaitable
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    await(long time, TimeUnit unit)
    See if we can wait successfully for this thing.
  • Method Details

    • await

      boolean await(long time, TimeUnit unit) throws InterruptedException
      See if we can wait successfully for this thing.
      Parameters:
      time - how long to wait
      unit - the unit in which time is specified
      Returns:
      true if the thing was obtained.
      Throws:
      InterruptedException - if someone hits the interrupt button