public static class ChannelAsyncInputStream.IoReadFutureImpl extends DefaultVerifiableSshFuture<IoReadFuture> implements IoReadFuture
CANCELED
log
Constructor and Description |
---|
IoReadFutureImpl(Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
Buffer |
getBuffer() |
Throwable |
getException()
Returns the cause of the read failure.
|
int |
getRead() |
IoReadFuture |
verify(long timeoutMillis)
Wait and verify that the operation was successful
|
verify, verify
addListener, await0, cancel, getValue, isCanceled, isDone, notifyListeners, removeListener, setValue
asListener, asT, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, notifyListener, verifyResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone
verify, verify
public IoReadFutureImpl(Buffer buffer)
public Buffer getBuffer()
getBuffer
in interface IoReadFuture
public IoReadFuture verify(long timeoutMillis) throws IOException
VerifiableFuture
verify
in interface VerifiableFuture<IoReadFuture>
timeoutMillis
- Wait timeout in millisecondsIOException
- If failed to verify successfully on timepublic int getRead()
getRead
in interface IoReadFuture
public Throwable getException()
IoReadFuture
getException
in interface IoReadFuture
null
if the read operation is not finished yet,
or if the read attempt is successful (use WaitableFuture.isDone()
to
distinguish between the two).Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.