public abstract class AbstractIoWriteFuture extends DefaultVerifiableSshFuture<IoWriteFuture> implements IoWriteFuture
CANCELED
log
Modifier | Constructor and Description |
---|---|
protected |
AbstractIoWriteFuture(Object lock) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException() |
boolean |
isWritten() |
IoWriteFuture |
verify(long timeout)
Wait and verify that the operation was successful
|
verify, verify
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
addListener, removeListener
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone
verify, verify
protected AbstractIoWriteFuture(Object lock)
public IoWriteFuture verify(long timeout) throws IOException
VerifiableFuture
verify
in interface VerifiableFuture<IoWriteFuture>
timeout
- Wait timeout in millisecondsIOException
- If failed to verify successfully on timepublic boolean isWritten()
isWritten
in interface IoWriteFuture
public Throwable getException()
getException
in interface IoWriteFuture
Exception
. Otherwise,
null is returned (use WaitableFuture.isDone()
to distinguish
between the two.Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.