Interface Timeout

All Known Implementing Classes:
FixedTimeout, InfiniteTimeout

public interface Timeout
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the time remaining, to be passed to wait or throws TimeoutException if the timeout has expired.
  • Method Details

    • timeRemaining

      long timeRemaining() throws TimeoutException
      Returns the time remaining, to be passed to wait or throws TimeoutException if the timeout has expired.
      Throws:
      TimeoutException