Class Filter<E>

  • All Implemented Interfaces:
    ContextAware, LifeCycle
    Direct Known Subclasses:
    AbstractMatcherFilter, ThresholdFilter

    @Deprecated(since="2022-01-27")
    public abstract class Filter<E>
    extends ContextAwareBase
    implements LifeCycle
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    Users should extend this class to implement customized event filtering.

    We suggest that you first try to use the built-in rules before rushing to write your own custom filters.

    For more information about filters, please refer to the online manual at http://logback.qos.ch/manual/filters.html

    • Constructor Detail

      • Filter

        public Filter()
        Deprecated.
    • Method Detail

      • start

        public void start()
        Deprecated.
        Specified by:
        start in interface LifeCycle
      • isStarted

        public boolean isStarted()
        Deprecated.
        Specified by:
        isStarted in interface LifeCycle
      • stop

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

        public abstract FilterReply decide​(E event)
        Deprecated.
        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()
        Deprecated.
      • setName

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