Class FailedChannelFuture

    • Field Detail

      • cause

        private final java.lang.Throwable cause
    • Constructor Detail

      • FailedChannelFuture

        FailedChannelFuture​(Channel channel,
                            EventExecutor executor,
                            java.lang.Throwable cause)
        Creates a new instance.
        Parameters:
        channel - the Channel associated with this future
        cause - the cause of failure
    • Method Detail

      • cause

        public java.lang.Throwable cause()
        Description copied from interface: Future
        Returns the cause of the failed I/O operation if the I/O operation has failed.
        Returns:
        the cause of the failure. null if succeeded or this future is not completed yet.
      • isSuccess

        public boolean isSuccess()
        Description copied from interface: Future
        Returns true if and only if the I/O operation was completed successfully.