T
- Type of verification result@FunctionalInterface
public interface VerifiableFuture<T>
verifyXXX
method returns without an exception then the operation was completed
successfullyModifier and Type | Method and Description |
---|---|
default T |
verify()
Wait
Long.MAX_VALUE msec. |
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 TimeUnit
java.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