akka.testkit
Class DeadLettersFilter

java.lang.Object
  extended by akka.testkit.EventFilter
      extended by 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)
           
 
Method Summary
static
<T> DeadLettersFilter
apply(scala.reflect.ClassTag<T> t)
           
 boolean matches(Logging.LogEvent event)
          This method decides whether to filter the event (true) or not (false).
 java.lang.Class<?> messageClass()
           
 
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
 

Constructor Detail

DeadLettersFilter

public DeadLettersFilter(java.lang.Class<?> messageClass,
                         int occurrences)
Method Detail

apply

public static <T> DeadLettersFilter apply(scala.reflect.ClassTag<T> t)

messageClass

public java.lang.Class<?> 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