Class SucceededChannelFuture

All Implemented Interfaces:
ChannelFuture, Future<Void>, Future<Void>

final class SucceededChannelFuture extends CompleteChannelFuture
The CompleteChannelFuture which is succeeded already. It is recommended to use ChannelOutboundInvoker.newSucceededFuture() instead of calling the constructor of this future.
  • Constructor Details

    • SucceededChannelFuture

      SucceededChannelFuture(Channel channel, EventExecutor executor)
      Creates a new instance.
      Parameters:
      channel - the Channel associated with this future
  • Method Details

    • cause

      public 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.