DeadLettersFilter

org.apache.pekko.testkit.DeadLettersFilter
See theDeadLettersFilter companion object
final case class DeadLettersFilter(messageClass: Class[_])(occurrences: Int) extends EventFilter

Filter which matches DeadLetter events, if the wrapped message conforms to the given type.

Attributes

Companion
object
Source
TestEventListener.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class EventFilter
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def matches(event: LogEvent): Boolean

This method decides whether to filter the event (true) or not (false).

This method decides whether to filter the event (true) or not (false).

Attributes

Source
TestEventListener.scala

Inherited methods

final def apply(event: LogEvent): Boolean

Attributes

Inherited from:
EventFilter
Source
TestEventListener.scala
def assertDone(max: Duration): Unit

Assert that this filter has matched as often as requested by its occurrences parameter specifies.

Assert that this filter has matched as often as requested by its occurrences parameter specifies.

Attributes

Inherited from:
EventFilter
Source
TestEventListener.scala

Attributes

Inherited from:
EventFilter
Source
TestEventListener.scala
def intercept[T](code: => T)(implicit system: ActorSystem): T

Apply this filter while executing the given code block. Care is taken to remove the filter when the block is finished or aborted.

Apply this filter while executing the given code block. Care is taken to remove the filter when the block is finished or aborted.

Attributes

Inherited from:
EventFilter
Source
TestEventListener.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product