Class GuardianActorAdapter<T>

  • All Implemented Interfaces:
    Actor, ActorLogging

    public class GuardianActorAdapter<T>
    extends ActorAdapter<T>
    INTERNAL API

    A special adapter for the guardian which will defer processing until a special Start signal has been received. That will allow to defer typed processing until the untyped ActorSystem has completely started up.

    • Constructor Detail

      • GuardianActorAdapter

        public GuardianActorAdapter​(Behavior<T> _initialBehavior)
    • Method Detail

      • sender

        public static final ActorRef sender()
      • aroundReceive

        protected static void aroundReceive​(scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> receive,
                                            java.lang.Object msg)
      • aroundPreStart

        protected static void aroundPreStart()
      • aroundPostStop

        protected static void aroundPostStop()
      • aroundPreRestart

        protected static void aroundPreRestart​(java.lang.Throwable reason,
                                               scala.Option<java.lang.Object> message)
      • aroundPostRestart

        protected static void aroundPostRestart​(java.lang.Throwable reason)
      • behavior

        protected static Behavior<T> behavior()
      • behavior_$eq

        protected static void behavior_$eq​(Behavior<T> x$1)
      • receive

        public static scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> receive()
      • running

        public static scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> running()
      • unhandled

        public static void unhandled​(java.lang.Object msg)
      • start

        protected static void start()
      • preRestart

        public static void preRestart​(java.lang.Throwable reason,
                                      scala.Option<java.lang.Object> message)
      • initializeContext

        protected static void initializeContext()
      • akka$actor$ActorLogging$$_log

        public static LoggingAdapter akka$actor$ActorLogging$$_log()
      • akka$actor$ActorLogging$$_log_$eq

        public static void akka$actor$ActorLogging$$_log_$eq​(LoggingAdapter x$1)
      • self

        public static final ActorRef self()
      • akka$actor$Actor$_setter_$context_$eq

        protected static void akka$actor$Actor$_setter_$context_$eq​(ActorContext x$1)
      • akka$actor$Actor$_setter_$self_$eq

        protected static final void akka$actor$Actor$_setter_$self_$eq​(ActorRef x$1)
      • preStart

        public void preStart()
        Description copied from interface: Actor
        User overridable callback.

        Is called when an Actor is started. Actors are automatically started asynchronously when created. Empty default implementation.
        Specified by:
        preStart in interface Actor
        Overrides:
        preStart in class ActorAdapter<T>
      • waitingForStart

        public scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> waitingForStart​(scala.collection.immutable.List<java.lang.Object> stashed)
      • postRestart

        public void postRestart​(java.lang.Throwable reason)
        Description copied from interface: Actor
        User overridable callback: By default it calls preStart().
        Specified by:
        postRestart in interface Actor
        Overrides:
        postRestart in class ActorAdapter<T>
        Parameters:
        reason - the Throwable that caused the restart to happen

        Is called right AFTER restart on the newly created Actor to allow reinitialization after an Actor crash.
      • postStop

        public void postStop()
        Description copied from interface: Actor
        User overridable callback.

        Is called asynchronously after 'actor.stop()' is invoked. Empty default implementation.
        Specified by:
        postStop in interface Actor
        Overrides:
        postStop in class ActorAdapter<T>