protected static class AbstractSession.PendingWriteFuture extends DefaultSshFuture<IoWriteFuture> implements IoWriteFuture, SshFutureListener<IoWriteFuture>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSession.PendingWriteFuture(Buffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
getBuffer() |
java.lang.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 |
operationComplete(IoWriteFuture future)
Invoked when the operation associated with the
SshFuture
has been completed even if you add the listener after the completion. |
void |
setException(java.lang.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, cancel, getValue, isCanceled, isDone, removeListener, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListenerprotected AbstractSession.PendingWriteFuture(Buffer buffer)
public Buffer getBuffer()
public boolean isWritten()
IoWriteFutureisWritten in interface IoWriteFuturepublic java.lang.Throwable getException()
IoWriteFutureException. Otherwise,
null is returned.getException in interface IoWriteFuturepublic void setWritten()
IoWriteFuturesetWritten in interface IoWriteFuturepublic void setException(java.lang.Throwable cause)
IoWriteFuturesetException in interface IoWriteFuturepublic void operationComplete(IoWriteFuture future)
SshFutureListenerSshFuture
has been completed even if you add the listener after the completion.operationComplete in interface SshFutureListener<IoWriteFuture>future - The source SshFuture which called this
callback.Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.