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, removeListener
await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDone
verify, verify, verify, verify
Buffer getBuffer()
null
if WaitableFuture.isDone()
== false
int 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–2024 The Apache Software Foundation. All rights reserved.