akka.event
Class LoggingReceive

java.lang.Object
  extended by akka.event.LoggingReceive
All Implemented Interfaces:
scala.Function1<java.lang.Object,scala.runtime.BoxedUnit>, scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>

public class LoggingReceive
extends java.lang.Object
implements scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>

This decorator adds invocation logging to a Receive function.


Nested Class Summary
 
Nested classes/interfaces inherited from interface scala.PartialFunction
scala.PartialFunction.AndThen<A,B,C>, scala.PartialFunction.Lifted<A,B>, scala.PartialFunction.OrElse<A,B>, scala.PartialFunction.Unlifted<A,B>
 
Constructor Summary
LoggingReceive(scala.Option<java.lang.Object> source, scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> r, ActorContext context)
           
LoggingReceive(scala.Option<java.lang.Object> source, scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> r, scala.Option<java.lang.String> label, ActorContext context)
           
 
Method Summary
 void apply(java.lang.Object o)
           
static scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> create(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> r, ActorContext context)
          Java API: compatible with lambda expressions This is an EXPERIMENTAL feature and is subject to change until it has received more real world testing.
 boolean isDefinedAt(java.lang.Object o)
           
static scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> withLabel(java.lang.String label, scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> r, ActorContext context)
          Create a decorated logger which will append " in state " + label to each message it logs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.PartialFunction
andThen, applyOrElse, lift, orElse, runWith
 
Methods 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, toString
 

Constructor Detail

LoggingReceive

public LoggingReceive(scala.Option<java.lang.Object> source,
                      scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> r,
                      scala.Option<java.lang.String> label,
                      ActorContext context)

LoggingReceive

public LoggingReceive(scala.Option<java.lang.Object> source,
                      scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> r,
                      ActorContext context)
Method Detail

create

public static scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> create(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> r,
                                                                                     ActorContext context)
Java API: compatible with lambda expressions This is an EXPERIMENTAL feature and is subject to change until it has received more real world testing.


withLabel

public static scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> withLabel(java.lang.String label,
                                                                                        scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> r,
                                                                                        ActorContext context)
Create a decorated logger which will append " in state " + label to each message it logs.


isDefinedAt

public boolean isDefinedAt(java.lang.Object o)
Specified by:
isDefinedAt in interface scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>

apply

public void apply(java.lang.Object o)
Specified by:
apply in interface scala.Function1<java.lang.Object,scala.runtime.BoxedUnit>