T
- Type of futurepublic abstract class DefaultVerifiableSshFuture<T extends SshFuture> extends DefaultSshFuture<T> implements VerifiableFuture<T>
CANCELED
log
Modifier | Constructor and Description |
---|---|
protected |
DefaultVerifiableSshFuture(Object lock) |
Modifier and Type | Method and Description |
---|---|
T |
verify()
Wait
Long.MAX_VALUE msec. |
T |
verify(long timeout,
TimeUnit unit)
Wait and verify that the operation was successful
|
addListener, await0, cancel, getValue, isCanceled, isDone, notifyListeners, removeListener, setValue
asListener, asT, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, notifyListener, verifyResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
verify
protected DefaultVerifiableSshFuture(Object lock)
public T verify() throws IOException
VerifiableFuture
Long.MAX_VALUE
msec. and verify that the operation was successfulverify
in interface VerifiableFuture<T extends SshFuture>
IOException
- If failed to verify successfully on timeVerifiableFuture.verify(long)
public T verify(long timeout, TimeUnit unit) throws IOException
VerifiableFuture
verify
in interface VerifiableFuture<T extends SshFuture>
timeout
- The number of time units to waitunit
- The wait TimeUnit
IOException
- If failed to verify successfully on timeVerifiableFuture.verify(long)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.