Class ChannelAsyncInputStream.IoReadFutureImpl

    • Field Detail

      • buffer

        private final Buffer buffer
    • Constructor Detail

      • IoReadFutureImpl

        public IoReadFutureImpl​(java.lang.Object id,
                                Buffer buffer)
    • Method Detail

      • verify

        public IoReadFuture verify​(long timeoutMillis)
                            throws java.io.IOException
        Description copied from interface: VerifiableFuture
        Wait and verify that the operation was successful
        Specified by:
        verify in interface VerifiableFuture<IoReadFuture>
        Parameters:
        timeoutMillis - Wait timeout in milliseconds
        Returns:
        The (same) future instance
        Throws:
        java.io.IOException - If failed to verify successfully on time
      • getException

        public java.lang.Throwable getException()
        Description copied from interface: IoReadFuture
        Returns the cause of the read failure.
        Specified by:
        getException in interface IoReadFuture
        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).