Package org.apache.pekko.testkit
Class InfoFilter
java.lang.Object
org.apache.pekko.testkit.EventFilter
org.apache.pekko.testkit.InfoFilter
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
Filter which matches Info events, if they satisfy the given criteria:
source, if given, applies a filter on the event’s originmessageapplies a filter on the event’s message (either with String.startsWith or Regex.findFirstIn().isDefined)
Left("").- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInfoFilter(String source, String message, boolean pattern, boolean complete, int occurrences) Java API: create an InfoFilterInfoFilter(scala.Option<String> source, scala.util.Either<String, scala.util.matching.Regex> message, boolean complete, int occurrences) -
Method Summary
Modifier and TypeMethodDescriptionstatic InfoFilterapply(scala.Option<String> source, scala.util.Either<String, scala.util.matching.Regex> message, boolean complete, int occurrences) booleanbooleancomplete()copy(scala.Option<String> source, scala.util.Either<String, scala.util.matching.Regex> message, boolean complete, int occurrences) scala.Option<String>scala.util.Either<String,scala.util.matching.Regex> booleanbooleaninthashCode()booleanmatches(Logging.LogEvent event) This method decides whether to filter the event (true) or not (false).scala.util.Either<String,scala.util.matching.Regex> message()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>scala.Option<String>source()toString()static scala.Option<scala.Tuple3<scala.Option<String>,scala.util.Either<String, scala.util.matching.Regex>, Object>> unapply(InfoFilter x$0) Methods inherited from class org.apache.pekko.testkit.EventFilter
apply, apply$default$1, apply$default$2, apply$default$3, apply$default$4, apply$default$5, assertDone, awaitDone, 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, warning, warning$default$1, warning$default$2, warning$default$3, warning$default$4, warning$default$5Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
InfoFilter
-
InfoFilter
public InfoFilter(String source, String message, boolean pattern, boolean complete, int occurrences) Java API: create an InfoFilter- Parameters:
source- apply this filter only to events from the given source; do not filter on source if this is given asnullmessage- apply this filter only to events whose message matches; do not filter on message if this is given asnullpattern- iffalse, the message string must start with the given string, otherwise themessageargument is treated as regular expression which is matched against the message (may match only a substring to filter)complete- whether the event’s message must match the given message string or pattern completely
-
-
Method Details
-
apply
public static InfoFilter apply(scala.Option<String> source, scala.util.Either<String, scala.util.matching.Regex> message, boolean complete, int occurrences) -
unapply
public static scala.Option<scala.Tuple3<scala.Option<String>,scala.util.Either<String, unapplyscala.util.matching.Regex>, Object>> (InfoFilter x$0) -
source
- Overrides:
sourcein classEventFilter
-
message
- Overrides:
messagein classEventFilter
-
complete
public boolean complete()- Overrides:
completein classEventFilter
-
matches
Description copied from class:EventFilterThis method decides whether to filter the event (true) or not (false).- Specified by:
matchesin classEventFilter
-
copy
public InfoFilter copy(scala.Option<String> source, scala.util.Either<String, scala.util.matching.Regex> message, boolean complete, int occurrences) -
copy$default$1
-
copy$default$2
-
copy$default$3
public boolean copy$default$3() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-