Interface MessageFilter

All Known Implementing Classes:
ExtractorFilter, StaticFieldFilter

public interface MessageFilter
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Process a Message
     
    int
    For determining the runtime order of the filter, specify a priority.
  • Method Details

    • filter

      boolean filter(Message msg)
      Process a Message
      Returns:
      true if this message should not further be handled (for example for blacklisting purposes)
    • getName

      String getName()
      Returns:
      The name of this filter. Should not include whitespaces or special characters.
    • getPriority

      int getPriority()
      For determining the runtime order of the filter, specify a priority. Lower priority values are run earlier, if two filters have the same priority, their name will be compared to guarantee a repeatable order.
      Returns:
      the priority