Class CountingFilter

All Implemented Interfaces:
ContextAware, LifeCycle

public class CountingFilter extends Filter
  • Constructor Details

    • CountingFilter

      public CountingFilter()
  • Method Details

    • decide

      public FilterReply decide(Object event)
      Description copied from class: Filter
      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.
      Specified by:
      decide in class Filter
      Parameters:
      event - The event to decide upon.
    • getTotal

      public long getTotal()
    • start

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

      public void stop()
      Specified by:
      stop in interface LifeCycle
      Overrides:
      stop in class Filter
    • getDomain

      public String getDomain()
    • setDomain

      public void setDomain(String domain)