c

akka.testkit

CustomEventFilter

final case class CustomEventFilter(test: PartialFunction[LogEvent, Boolean])(occurrences: Int) extends EventFilter with Product with Serializable

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

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

Source
TestEventListener.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CustomEventFilter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. EventFilter
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CustomEventFilter(test: PartialFunction[LogEvent, Boolean])(occurrences: Int)

Value Members

  1. final def apply(event: LogEvent): Boolean
    Definition Classes
    EventFilter
  2. 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.

    Definition Classes
    EventFilter
  3. def awaitDone(max: Duration): Boolean
    Definition Classes
    EventFilter
  4. def intercept[T](code: ⇒ T)(implicit system: ActorSystem): T

    Apply this filter while executing the given code block.

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

    Definition Classes
    EventFilter
  5. 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).

    Definition Classes
    CustomEventFilterEventFilter
  6. val test: PartialFunction[LogEvent, Boolean]