public static class ChannelAsyncOutputStream.IoWriteFutureImpl extends DefaultSshFuture<IoWriteFuture> implements IoWriteFuture
Constructor and Description |
---|
IoWriteFutureImpl(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 |
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
public IoWriteFutureImpl(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
Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.