Interface Timeoutable

    • Method Detail

      • withTimeout

        Object withTimeout​(long timeout,
                           TimeUnit unit)
        Wait for the given operation timeout.
        Parameters:
        timeout - 0 indicates no wait
        unit -
      • withTimeoutInMillis

        Object withTimeoutInMillis​(long timeoutInMillis)
        Wait for the given operation timeout in milliseconds.
        Parameters:
        timeoutInMillis - 0 indicates no wait