Package akka.testkit
Class InfoFilter
- java.lang.Object
-
- akka.testkit.EventFilter
-
- akka.testkit.InfoFilter
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class InfoFilter extends EventFilter implements scala.Product, java.io.Serializable
Filter which matches Info events, if they satisfy the given criteria:source
, if given, applies a filter on the event’s originmessage
applies a filter on the event’s message (either with String.startsWith or Regex.findFirstIn().isDefined)
Left("")
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InfoFilter(java.lang.String source, java.lang.String message, boolean pattern, boolean complete, int occurrences)
Java API: create an InfoFilterInfoFilter(scala.Option<java.lang.String> source, scala.util.Either<java.lang.String,scala.util.matching.Regex> message, boolean complete, int occurrences)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InfoFilter
apply(scala.Option<java.lang.String> source, scala.util.Either<java.lang.String,scala.util.matching.Regex> message, boolean complete, int occurrences)
boolean
canEqual(java.lang.Object x$1)
boolean
complete()
InfoFilter
copy(scala.Option<java.lang.String> source, scala.util.Either<java.lang.String,scala.util.matching.Regex> message, boolean complete, int occurrences)
scala.Option<java.lang.String>
copy$default$1()
scala.util.Either<java.lang.String,scala.util.matching.Regex>
copy$default$2()
boolean
copy$default$3()
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
).scala.util.Either<java.lang.String,scala.util.matching.Regex>
message()
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.Option<java.lang.String>
source()
java.lang.String
toString()
static scala.Option<scala.Tuple3<scala.Option<java.lang.String>,scala.util.Either<java.lang.String,scala.util.matching.Regex>,java.lang.Object>>
unapply(InfoFilter 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, 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$5
-
-
-
-
Constructor Detail
-
InfoFilter
public InfoFilter(scala.Option<java.lang.String> source, scala.util.Either<java.lang.String,scala.util.matching.Regex> message, boolean complete, int occurrences)
-
InfoFilter
public InfoFilter(java.lang.String source, java.lang.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 asnull
message
- apply this filter only to events whose message matches; do not filter on message if this is given asnull
pattern
- iffalse
, the message string must start with the given string, otherwise themessage
argument 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 Detail
-
apply
public static InfoFilter apply(scala.Option<java.lang.String> source, scala.util.Either<java.lang.String,scala.util.matching.Regex> message, boolean complete, int occurrences)
-
unapply
public static scala.Option<scala.Tuple3<scala.Option<java.lang.String>,scala.util.Either<java.lang.String,scala.util.matching.Regex>,java.lang.Object>> unapply(InfoFilter x$0)
-
source
public scala.Option<java.lang.String> source()
- Overrides:
source
in classEventFilter
-
message
public scala.util.Either<java.lang.String,scala.util.matching.Regex> message()
- Overrides:
message
in classEventFilter
-
complete
public boolean complete()
- Overrides:
complete
in classEventFilter
-
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 InfoFilter copy(scala.Option<java.lang.String> source, scala.util.Either<java.lang.String,scala.util.matching.Regex> message, boolean complete, int occurrences)
-
copy$default$1
public scala.Option<java.lang.String> copy$default$1()
-
copy$default$2
public scala.util.Either<java.lang.String,scala.util.matching.Regex> copy$default$2()
-
copy$default$3
public boolean copy$default$3()
-
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
-
-