Class Pipeline<E,​H extends Handler<E>>

    • Constructor Detail

      • Pipeline

        public Pipeline​(List<H> handlers)
        Creates an instance with a given list of handlers.

        Modification to the input list do not affect the pipeline.

        Parameters:
        handlers - the handlers
    • Method Detail

      • handlers

        public List<H> handlers()
        Returns the handlers in this pipeline.

        Modification to the input list do not affect the pipeline.

        Returns:
        the handlers
      • forward

        public void forward​(E event)
        Forwards an event through the pipeline.
        Parameters:
        event - the event