Package akka.testkit
Class CustomEventFilter
- java.lang.Object
-
- akka.testkit.EventFilter
-
- akka.testkit.CustomEventFilter
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class CustomEventFilter extends EventFilter implements scala.Product, java.io.Serializable
Custom event filter when the others do not fit the bill.If the partial function is defined and returns true, filter the event.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomEventFilter(scala.PartialFunction<Logging.LogEvent,java.lang.Object> test, int occurrences)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomEventFilter
apply(scala.PartialFunction<Logging.LogEvent,java.lang.Object> test, int occurrences)
boolean
canEqual(java.lang.Object x$1)
CustomEventFilter
copy(scala.PartialFunction<Logging.LogEvent,java.lang.Object> test, int occurrences)
scala.PartialFunction<Logging.LogEvent,java.lang.Object>
copy$default$1()
boolean
equals(java.lang.Object x$1)
int
hashCode()
boolean
matches(Logging.LogEvent event)
This method decides whether to filter the event (true
) or not (false
).int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
scala.PartialFunction<Logging.LogEvent,java.lang.Object>
test()
java.lang.String
toString()
static scala.Option<scala.PartialFunction<Logging.LogEvent,java.lang.Object>>
unapply(CustomEventFilter x$0)
-
Methods inherited from class akka.testkit.EventFilter
apply, apply$default$1, apply$default$2, apply$default$3, apply$default$4, apply$default$5, assertDone, awaitDone, complete, custom, custom$default$2, debug, debug$default$1, debug$default$2, debug$default$3, debug$default$4, debug$default$5, doMatch, error, error$default$1, error$default$2, error$default$3, error$default$4, error$default$5, info, info$default$1, info$default$2, info$default$3, info$default$4, info$default$5, intercept, message, source, warning, warning$default$1, warning$default$2, warning$default$3, warning$default$4, warning$default$5
-
-
-
-
Constructor Detail
-
CustomEventFilter
public CustomEventFilter(scala.PartialFunction<Logging.LogEvent,java.lang.Object> test, int occurrences)
-
-
Method Detail
-
apply
public static CustomEventFilter apply(scala.PartialFunction<Logging.LogEvent,java.lang.Object> test, int occurrences)
-
unapply
public static scala.Option<scala.PartialFunction<Logging.LogEvent,java.lang.Object>> unapply(CustomEventFilter x$0)
-
test
public scala.PartialFunction<Logging.LogEvent,java.lang.Object> test()
-
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 classEventFilter
-
copy
public CustomEventFilter copy(scala.PartialFunction<Logging.LogEvent,java.lang.Object> test, int occurrences)
-
copy$default$1
public scala.PartialFunction<Logging.LogEvent,java.lang.Object> copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-