public interface IoReadFuture extends SshFuture<IoReadFuture>, VerifiableFuture<IoReadFuture>
| Modifier and Type | Method and Description |
|---|---|
Buffer |
getBuffer()
Retrieves the buffer data was read into.
|
Throwable |
getException()
Returns the cause of the read failure.
|
int |
getRead()
Retrieves the number of bytes read.
|
addListener, removeListenerawait, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDoneverify, verify, verify, verifyBuffer getBuffer()
null if WaitableFuture.isDone() == falseint getRead()
WaitableFuture.isDone() == false)Throwable getException()
EOFException indicates that nothing was read because
the source of the read is exhausted.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–2025 The Apache Software Foundation. All rights reserved.