Package akka.event

Class 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. param: source the log source, if not defined the actor of the context will be used
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface scala.PartialFunction

        scala.PartialFunction.AndThen<A extends java.lang.Object,​B extends java.lang.Object,​C extends java.lang.Object>, scala.PartialFunction.Lifted<A extends java.lang.Object,​B extends java.lang.Object>, scala.PartialFunction.OrElse<A extends java.lang.Object,​B extends java.lang.Object>, scala.PartialFunction.Unlifted<A extends java.lang.Object,​B extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      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)  
      LoggingReceive​(scala.Option<java.lang.Object> source, scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> r, scala.Option<java.lang.String> label, Logging.LogLevel logLevel, ActorContext context)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static <C> scala.PartialFunction<A,​C> andThen​(scala.Function1<B,​C> k)  
      void apply​(java.lang.Object o)  
      static double apply$mcDD$sp​(double v1)  
      static double apply$mcDF$sp​(float v1)  
      static double apply$mcDI$sp​(int v1)  
      static double apply$mcDJ$sp​(long v1)  
      static float apply$mcFD$sp​(double v1)  
      static float apply$mcFF$sp​(float v1)  
      static float apply$mcFI$sp​(int v1)  
      static float apply$mcFJ$sp​(long v1)  
      static int apply$mcID$sp​(double v1)  
      static int apply$mcIF$sp​(float v1)  
      static int apply$mcII$sp​(int v1)  
      static int apply$mcIJ$sp​(long v1)  
      static long apply$mcJD$sp​(double v1)  
      static long apply$mcJF$sp​(float v1)  
      static long apply$mcJI$sp​(int v1)  
      static long apply$mcJJ$sp​(long v1)  
      static void apply$mcVD$sp​(double v1)  
      static void apply$mcVF$sp​(float v1)  
      static void apply$mcVI$sp​(int v1)  
      static void apply$mcVJ$sp​(long v1)  
      static boolean apply$mcZD$sp​(double v1)  
      static boolean apply$mcZF$sp​(float v1)  
      static boolean apply$mcZI$sp​(int v1)  
      static boolean apply$mcZJ$sp​(long v1)  
      static <A1 extends A,​B1>
      B1
      applyOrElse​(A1 x, scala.Function1<A1,​B1> default_)  
      static <A> scala.Function1<A,​R> compose​(scala.Function1<A,​T1> g)  
      static AbstractActor.Receive create​(AbstractActor.Receive r, AbstractActor.ActorContext context)
      Java API: compatible with lambda expressions
      static scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> create​(scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> r, ActorContext context)
      Deprecated.
      Use the create method with `AbstractActor.Receive` parameter instead.
      boolean isDefinedAt​(java.lang.Object o)  
      static scala.Function1<A,​scala.Option<B>> lift()  
      static <A1 extends A,​B1>
      scala.PartialFunction<A1,​B1>
      orElse​(scala.PartialFunction<A1,​B1> that)  
      static <U> scala.Function1<A,​java.lang.Object> runWith​(scala.Function1<B,​U> action)  
      static java.lang.String toString()  
      static scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> withLabel​(java.lang.String label, Logging.LogLevel logLevel, 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.
      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.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
      • Methods inherited from interface scala.PartialFunction

        andThen, applyOrElse, lift, orElse, runWith
    • 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,
                              Logging.LogLevel logLevel,
                              ActorContext context)
      • 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)
        Deprecated.
        Use the create method with `AbstractActor.Receive` parameter instead. Since 2.5.0.
        Java API: compatible with lambda expressions
        Parameters:
        r - (undocumented)
        context - (undocumented)
        Returns:
        (undocumented)
      • withLabel

        public static scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> withLabel​(java.lang.String label,
                                                                                                      Logging.LogLevel logLevel,
                                                                                                      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.
        Parameters:
        label - (undocumented)
        logLevel - (undocumented)
        r - (undocumented)
        context - (undocumented)
        Returns:
        (undocumented)
      • 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.
        Parameters:
        label - (undocumented)
        r - (undocumented)
        context - (undocumented)
        Returns:
        (undocumented)
      • apply$mcZD$sp

        public static boolean apply$mcZD$sp​(double v1)
      • apply$mcDD$sp

        public static double apply$mcDD$sp​(double v1)
      • apply$mcFD$sp

        public static float apply$mcFD$sp​(double v1)
      • apply$mcID$sp

        public static int apply$mcID$sp​(double v1)
      • apply$mcJD$sp

        public static long apply$mcJD$sp​(double v1)
      • apply$mcVD$sp

        public static void apply$mcVD$sp​(double v1)
      • apply$mcZF$sp

        public static boolean apply$mcZF$sp​(float v1)
      • apply$mcDF$sp

        public static double apply$mcDF$sp​(float v1)
      • apply$mcFF$sp

        public static float apply$mcFF$sp​(float v1)
      • apply$mcIF$sp

        public static int apply$mcIF$sp​(float v1)
      • apply$mcJF$sp

        public static long apply$mcJF$sp​(float v1)
      • apply$mcVF$sp

        public static void apply$mcVF$sp​(float v1)
      • apply$mcZI$sp

        public static boolean apply$mcZI$sp​(int v1)
      • apply$mcDI$sp

        public static double apply$mcDI$sp​(int v1)
      • apply$mcFI$sp

        public static float apply$mcFI$sp​(int v1)
      • apply$mcII$sp

        public static int apply$mcII$sp​(int v1)
      • apply$mcJI$sp

        public static long apply$mcJI$sp​(int v1)
      • apply$mcVI$sp

        public static void apply$mcVI$sp​(int v1)
      • apply$mcZJ$sp

        public static boolean apply$mcZJ$sp​(long v1)
      • apply$mcDJ$sp

        public static double apply$mcDJ$sp​(long v1)
      • apply$mcFJ$sp

        public static float apply$mcFJ$sp​(long v1)
      • apply$mcIJ$sp

        public static int apply$mcIJ$sp​(long v1)
      • apply$mcJJ$sp

        public static long apply$mcJJ$sp​(long v1)
      • apply$mcVJ$sp

        public static void apply$mcVJ$sp​(long v1)
      • compose

        public static <A> scala.Function1<A,​R> compose​(scala.Function1<A,​T1> g)
      • toString

        public static java.lang.String toString()
      • orElse

        public static <A1 extends A,​B1> scala.PartialFunction<A1,​B1> orElse​(scala.PartialFunction<A1,​B1> that)
      • andThen

        public static <C> scala.PartialFunction<A,​C> andThen​(scala.Function1<B,​C> k)
      • lift

        public static scala.Function1<A,​scala.Option<B>> lift()
      • applyOrElse

        public static <A1 extends A,​B1> B1 applyOrElse​(A1 x,
                                                             scala.Function1<A1,​B1> default_)
      • runWith

        public static <U> scala.Function1<A,​java.lang.Object> runWith​(scala.Function1<B,​U> action)
      • 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>