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(java.time.Duration timeout)
Wait and verify that the operation was successful
|
T |
verify(long timeoutMillis)
Wait and verify that the operation was successful
|
default T |
verify(long timeout,
java.util.concurrent.TimeUnit unit)
Wait and verify that the operation was successful
|
default T verify() throws java.io.IOException
Long.MAX_VALUE msec. and verify that the operation was successfuljava.io.IOException - If failed to verify successfully on timeverify(long)default T verify(long timeout, java.util.concurrent.TimeUnit unit) throws java.io.IOException
timeout - The number of time units to waitunit - The wait TimeUnitjava.io.IOException - If failed to verify successfully on timeverify(long)default T verify(java.time.Duration timeout) throws java.io.IOException
timeout - The maximum duration to wait, null to wait foreverjava.io.IOException - If failed to verify successfully on timeverify(long)T verify(long timeoutMillis) throws java.io.IOException
timeoutMillis - Wait timeout in millisecondsjava.io.IOException - If failed to verify successfully on time