Interface Processor<E extends Context>

    • Method Detail

      • process

        ProcessorResult process​(E context)
        Method will be called by framework to process some event, which occurred on a connection
        Parameters:
        context - processing context
        Returns:
        the result of I/O event processing
      • isInterested

        boolean isInterested​(IOEvent ioEvent)
        Is this Processor interested in processing the i/o event
        Parameters:
        ioEvent - the event to check if the Processor is interested in
        Returns:
        true, if this Processor is interested and execution process will start, false otherwise.
      • setInterested

        void setInterested​(IOEvent ioEvent,
                           boolean isInterested)
        Set the the i/o event, this Processor is interested in
        Parameters:
        ioEvent - IOEvent
        isInterested - true, if Processor is interested in processing of the I/O event, or false otherwise.