Class SucceededChannelFuture

    • Constructor Detail

      • SucceededChannelFuture

        public SucceededChannelFuture​(Channel channel)
        Creates a new instance.
        Parameters:
        channel - the Channel associated with this future
    • Method Detail

      • getCause

        public java.lang.Throwable getCause()
        Description copied from interface: ChannelFuture
        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: ChannelFuture
        Returns true if and only if the I/O operation was completed successfully.
      • sync

        public ChannelFuture sync()
                           throws java.lang.InterruptedException
        Description copied from interface: ChannelFuture
        Waits for this future until it is done, and rethrows the cause of the failure if this future failed. If the cause of the failure is a checked exception, it is wrapped with a new ChannelException before being thrown.
        Throws:
        java.lang.InterruptedException
      • syncUninterruptibly

        public ChannelFuture syncUninterruptibly()
        Description copied from interface: ChannelFuture
        Waits for this future until it is done, and rethrows the cause of the failure if this future failed. If the cause of the failure is a checked exception, it is wrapped with a new ChannelException before being thrown.