Interface IoReadFuture

    • Method Detail

      • getRead

        int getRead()
        Retrieves the number of bytes read.
        Returns:
        The number of bytes read, or -1 if the source of the read has been exhausted (is at EOF), or zero if the read is not done yet (WaitableFuture.isDone() == false)
      • getException

        java.lang.Throwable getException()
        Returns the cause of the read failure. An EOFException indicates that nothing was read because the source of the read is exhausted.
        Returns:
        null if the read operation is not finished yet, or if the read attempt is successful (use WaitableFuture.isDone() to distinguish between the two).