public static class ChannelAsyncInputStream.IoReadFutureImpl extends DefaultVerifiableSshFuture<IoReadFuture> implements IoReadFuture
| Modifier and Type | Field and Description |
|---|---|
private Buffer |
buffer |
CANCELED, debugEnabled, traceEnabledlog| Constructor and Description |
|---|
IoReadFutureImpl(java.lang.Object id,
Buffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
getBuffer() |
java.lang.Throwable |
getException()
Returns the cause of the read failure.
|
int |
getRead() |
IoReadFuture |
verify(long timeoutMillis)
Wait and verify that the operation was successful
|
addListener, await0, cancel, getNumRegisteredListeners, getValue, isCanceled, isDone, notifyListeners, removeListener, setValue, toStringasListener, asT, await, awaitUninterruptibly, formatExceptionMessage, getId, notifyListener, verifyResultgetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, removeListenerawait, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDoneverify, verify, verifyprivate final Buffer buffer
public IoReadFutureImpl(java.lang.Object id,
Buffer buffer)
public Buffer getBuffer()
getBuffer in interface IoReadFuturepublic IoReadFuture verify(long timeoutMillis) throws java.io.IOException
VerifiableFutureverify in interface VerifiableFuture<IoReadFuture>timeoutMillis - Wait timeout in millisecondsjava.io.IOException - If failed to verify successfully on timepublic int getRead()
getRead in interface IoReadFuturepublic java.lang.Throwable getException()
IoReadFuturegetException in interface IoReadFuturenull if the read operation is not finished yet, or if the read attempt is successful (use
WaitableFuture.isDone() to distinguish between the two).