T - Type of verification result@FunctionalInterface public interface VerifiableFuture<T>
verifyXXX method returns without an exception then the operation was completed successfully| Modifier and Type | Method and Description |
|---|---|
default T |
verify()
Wait
Long.MAX_VALUE msec. |
default T |
verify(CancelOption... options)
Wait
Long.MAX_VALUE msec. |
default T |
verify(Duration timeout)
Wait and verify that the operation was successful
|
default T |
verify(Duration timeout,
CancelOption... options)
Wait and verify that the operation was successful
|
default T |
verify(long timeoutMillis)
Wait and verify that the operation was successful
|
T |
verify(long timeoutMillis,
CancelOption... options)
Wait and verify that the operation was successful
|
default T |
verify(long timeout,
TimeUnit unit)
Wait and verify that the operation was successful
|
default T |
verify(long timeout,
TimeUnit unit,
CancelOption... options)
Wait and verify that the operation was successful
|
default T verify() throws IOException
Long.MAX_VALUE msec. and verify that the operation was successfulIOException - If failed to verify successfully on timeverify(long, CancelOption[])default T verify(CancelOption... options) throws IOException
Long.MAX_VALUE msec. and verify that the operation was successfuloptions - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if the
future is not Cancellable.IOException - If failed to verify successfully on timeverify(long, CancelOption[])default T verify(long timeout, TimeUnit unit) throws IOException
timeout - The number of time units to waitunit - The wait TimeUnitIOException - If failed to verify successfully on timeverify(long, CancelOption[])default T verify(long timeout, TimeUnit unit, CancelOption... options) throws IOException
timeout - The number of time units to waitunit - The wait TimeUnitoptions - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if the
future is not Cancellable.IOException - If failed to verify successfully on timeverify(long, CancelOption[])default T verify(Duration timeout) throws IOException
timeout - The maximum duration to wait, null to wait foreverIOException - If failed to verify successfully on timeverify(long, CancelOption[])default T verify(Duration timeout, CancelOption... options) throws IOException
timeout - The maximum duration to wait, null to wait foreveroptions - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if the
future is not Cancellable.IOException - If failed to verify successfully on timeverify(long, CancelOption[])default T verify(long timeoutMillis) throws IOException
timeoutMillis - Wait timeout in millisecondsIOException - If failed to verify successfully on timeT verify(long timeoutMillis, CancelOption... options) throws IOException
timeoutMillis - Wait timeout in millisecondsoptions - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if
the future is not Cancellable.IOException - If failed to verify successfully on timeCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.