protected static class AbstractSession.PendingWriteFuture extends DefaultSshFuture<IoWriteFuture> implements IoWriteFuture, SshFutureListener<IoWriteFuture>
Modifier | Constructor and Description |
---|---|
protected |
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, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListener
protected PendingWriteFuture(Buffer buffer)
public Buffer getBuffer()
public void verify() throws SshException
IoWriteFuture
verify
in interface IoWriteFuture
SshException
- if the write failed for any reasonpublic boolean isWritten()
IoWriteFuture
isWritten
in interface IoWriteFuture
public Throwable getException()
IoWriteFuture
Exception
. Otherwise,
null is returned.getException
in interface IoWriteFuture
public void setWritten()
public void setException(Throwable cause)
public void operationComplete(IoWriteFuture future)
SshFutureListener
SshFuture
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–2016 The Apache Software Foundation. All rights reserved.