Class AbstractChannelSink

    • Constructor Detail

      • AbstractChannelSink

        protected AbstractChannelSink()
        Creates a new instance.
    • Method Detail

      • isFireExceptionCaughtLater

        protected boolean isFireExceptionCaughtLater​(ChannelEvent event,
                                                     java.lang.Throwable actualCause)
        Returns true if and only if the specified actualCause, which was raised while handling the specified event, must trigger an exceptionCaught() event in an I/O thread.
        Parameters:
        event - the event which raised exception
        actualCause - the raised exception
      • execute

        public ChannelFuture execute​(ChannelPipeline pipeline,
                                     java.lang.Runnable task)
        This implementation just directly call Runnable.run(). Sub-classes should override this if they can handle it in a better way
        Specified by:
        execute in interface ChannelSink