Package org.apache.pekko.event
Class LoggingReceive
java.lang.Object
org.apache.pekko.event.LoggingReceive
- All Implemented Interfaces:
scala.Function1<Object,,scala.runtime.BoxedUnit> scala.PartialFunction<Object,scala.runtime.BoxedUnit>
public class LoggingReceive
extends Object
implements scala.PartialFunction<Object,scala.runtime.BoxedUnit>
This decorator adds invocation logging to a Receive function.
param: source the log source, if not defined the actor of the context will be used
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingReceive(scala.Option<Object> source, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) LoggingReceive(scala.Option<Object> source, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, scala.Option<String> label, ActorContext context) LoggingReceive(scala.Option<Object> source, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, scala.Option<String> label, Logging.LogLevel logLevel, ActorContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic AbstractActor.Receivecreate(AbstractActor.Receive r, AbstractActor.ActorContext context) Java API: compatible with lambda expressionsbooleanstatic scala.PartialFunction<Object,scala.runtime.BoxedUnit> withLabel(String label, Logging.LogLevel logLevel, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Create a decorated logger which will append" in state " + labelto each message it logs.static scala.PartialFunction<Object,scala.runtime.BoxedUnit> withLabel(String label, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Create a decorated logger which will append" in state " + labelto each message it logs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Function1
apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, compose, toStringMethods inherited from interface scala.PartialFunction
andThen, andThen, applyOrElse, compose, elementWise, lift, orElse, runWith, unapply
-
Constructor Details
-
LoggingReceive
public LoggingReceive(scala.Option<Object> source, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, scala.Option<String> label, Logging.LogLevel logLevel, ActorContext context) -
LoggingReceive
public LoggingReceive(scala.Option<Object> source, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, scala.Option<String> label, ActorContext context) -
LoggingReceive
public LoggingReceive(scala.Option<Object> source, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context)
-
-
Method Details
-
create
public static AbstractActor.Receive create(AbstractActor.Receive r, AbstractActor.ActorContext context) Java API: compatible with lambda expressions -
withLabel
public static scala.PartialFunction<Object,scala.runtime.BoxedUnit> withLabel(String label, Logging.LogLevel logLevel, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Create a decorated logger which will append" in state " + labelto each message it logs. -
withLabel
public static scala.PartialFunction<Object,scala.runtime.BoxedUnit> withLabel(String label, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Create a decorated logger which will append" in state " + labelto each message it logs. -
isDefinedAt
- Specified by:
isDefinedAtin interfacescala.PartialFunction<Object,scala.runtime.BoxedUnit>
-
apply
- Specified by:
applyin interfacescala.Function1<Object,scala.runtime.BoxedUnit>
-