public interface IoWriteFuture extends SshFuture<IoWriteFuture>
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Returns the cause of the write failure if and only if the write
operation has failed due to an
Exception . |
boolean |
isWritten()
Returns true if the write operation is finished successfully.
|
void |
setException(Throwable cause)
Sets the cause of the write failure, and notifies all threads waiting
for this future.
|
void |
setWritten()
Sets the message is written, and notifies all threads waiting for
this future.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListener
boolean isWritten()
Throwable getException()
Exception
. Otherwise,
null is returned.void setWritten()
void setException(Throwable cause)
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.