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, await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDoneBuffer 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 © 2018–2024 The Apache Software Foundation. All rights reserved.