Class Filter<E>

    • Field Detail

      • name

        private java.lang.String name
      • start

        boolean start
    • Constructor Detail

      • Filter

        public Filter()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface LifeCycle
      • stop

        public void stop()
        Specified by:
        stop in interface LifeCycle
      • decide

        public abstract FilterReply decide​(E event)
        If the decision is FilterReply.DENY, then the event will be dropped. If the decision is FilterReply.NEUTRAL, then the next filter, if any, will be invoked. If the decision is FilterReply.ACCEPT then the event will be logged without consulting with other filters in the chain.
        Parameters:
        event - The event to decide upon.
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)