akka.testkit
Class DeadLettersFilter
java.lang.Object
akka.testkit.EventFilter
akka.testkit.DeadLettersFilter
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class DeadLettersFilter
- extends EventFilter
- implements scala.Product, scala.Serializable
Filter which matches DeadLetter events, if the wrapped message conforms to the
given type.
- See Also:
- Serialized Form
Constructor Summary |
DeadLettersFilter(java.lang.Class<?> messageClass,
int occurrences)
|
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 |
DeadLettersFilter
public DeadLettersFilter(java.lang.Class<?> messageClass,
int occurrences)
apply
public static <T> DeadLettersFilter apply(scala.reflect.ClassTag<T> t)
messageClass
public java.lang.Object messageClass()
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