Class CustomEventFilter

java.lang.Object
org.apache.pekko.testkit.EventFilter
org.apache.pekko.testkit.CustomEventFilter
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public final class CustomEventFilter extends EventFilter implements scala.Product, Serializable
Custom event filter when the others do not fit the bill.

If the partial function is defined and returns true, filter the event.

See Also:
  • Constructor Details

    • CustomEventFilter

      public CustomEventFilter(scala.PartialFunction<Logging.LogEvent,Object> test, int occurrences)
  • Method Details

    • apply

      public static CustomEventFilter apply(scala.PartialFunction<Logging.LogEvent,Object> test, int occurrences)
    • unapply

      public static scala.Option<scala.PartialFunction<Logging.LogEvent,Object>> unapply(CustomEventFilter x$0)
    • test

      public scala.PartialFunction<Logging.LogEvent,Object> test()
    • matches

      public boolean matches(Logging.LogEvent event)
      Description copied from class: EventFilter
      This method decides whether to filter the event (true) or not (false).
      Specified by:
      matches in class EventFilter
    • copy

      public CustomEventFilter copy(scala.PartialFunction<Logging.LogEvent,Object> test, int occurrences)
    • copy$default$1

      public scala.PartialFunction<Logging.LogEvent,Object> copy$default$1()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object