CustomEventFilter

org.apache.pekko.testkit.CustomEventFilter
final case class CustomEventFilter(test: PartialFunction[LogEvent, Boolean])(occurrences: Int) extends EventFilter

Custom event filter when the others do not fit the bill.

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

Attributes

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