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. and verify that the operation was successful |
T |
verify(long timeoutMillis)
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() throws IOException
Long.MAX_VALUE msec. and verify that the operation was successfulIOException - If failed to verify successfully on timeverify(long)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)T verify(long timeoutMillis) throws IOException
timeoutMillis - Wait timeout in millisecondsIOException - If failed to verify successfully on timeCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.