Interface VerifiableFuture<T>

    • Method Detail

      • verify

        default T verify​(Duration timeout,
                         CancelOption... options)
                  throws IOException
        Wait and verify that the operation was successful
        Parameters:
        timeout - The maximum duration to wait, null to wait forever
        options - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if the future is not Cancellable.
        Returns:
        The (same) future instance
        Throws:
        IOException - If failed to verify successfully on time
        See Also:
        verify(long, CancelOption[])
      • verify

        T verify​(long timeoutMillis,
                 CancelOption... options)
          throws IOException
        Wait and verify that the operation was successful
        Parameters:
        timeoutMillis - Wait timeout in milliseconds
        options - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if the future is not Cancellable.
        Returns:
        The (same) future instance
        Throws:
        IOException - If failed to verify successfully on time