akka.testkit
Class CustomEventFilter
java.lang.Object
akka.testkit.EventFilter
akka.testkit.CustomEventFilter
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class CustomEventFilter
- extends EventFilter
- implements scala.Product, scala.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:
- Serialized Form
Methods inherited from class akka.testkit.EventFilter |
apply, awaitDone, complete, custom, debug, doMatch, error, info, intercept, message, source, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
CustomEventFilter
public CustomEventFilter(scala.PartialFunction<Logging.LogEvent,java.lang.Object> test,
int occurrences)
test
public scala.PartialFunction<Logging.LogEvent,java.lang.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
- Parameters:
event
- (undocumented)
- Returns:
- (undocumented)