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() |
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(Throwable cause) |
void |
setWritten() |
void |
verify()
Wait and verify that the write succeeded.
|
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 void verify()
throws SshException
IoWriteFutureverify in interface IoWriteFutureSshException - if the write failed for any reasonpublic boolean isWritten()
IoWriteFutureisWritten in interface IoWriteFuturepublic Throwable getException()
IoWriteFutureException. Otherwise,
null is returned.getException in interface IoWriteFuturepublic void setWritten()
public void setException(Throwable cause)
public 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–2015 The Apache Software Foundation. All rights reserved.