Interface VerifiableFuture<T>

    • Method Detail

      • verify

        default T verify​(long timeout,
                         TimeUnit unit)
                  throws IOException
        Wait and verify that the operation was successful
        Parameters:
        timeout - The number of time units to wait
        unit - The wait TimeUnit
        Returns:
        The (same) future instance
        Throws:
        IOException - If failed to verify successfully on time
        See Also:
        verify(long)
      • verify

        default T verify​(Duration timeout)
                  throws IOException
        Wait and verify that the operation was successful
        Parameters:
        timeout - The maximum duration to wait, null to wait forever
        Returns:
        The (same) future instance
        Throws:
        IOException - If failed to verify successfully on time
        See Also:
        verify(long)
      • verify

        T verify​(long timeoutMillis)
          throws IOException
        Wait and verify that the operation was successful
        Parameters:
        timeoutMillis - Wait timeout in milliseconds
        Returns:
        The (same) future instance
        Throws:
        IOException - If failed to verify successfully on time