Class ChannelRunnableWrapper

    • Field Detail

      • task

        private final java.lang.Runnable task
      • started

        private boolean started
    • Constructor Detail

      • ChannelRunnableWrapper

        public ChannelRunnableWrapper​(Channel channel,
                                      java.lang.Runnable task)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • cancel

        public boolean cancel()
        Description copied from interface: ChannelFuture
        Cancels the I/O operation associated with this future and notifies all listeners if canceled successfully.
        Specified by:
        cancel in interface ChannelFuture
        Overrides:
        cancel in class DefaultChannelFuture
        Returns:
        true if and only if the operation has been canceled. false if the operation can't be canceled or is already completed.