Package akka.routing

Class RoutedActorCell

    • Method Detail

      • routeeProps

        public Props routeeProps()
      • router

        public Router router()
      • addRoutee

        public void addRoutee​(Routee routee)
      • addRoutees

        public void addRoutees​(scala.collection.immutable.Iterable<Routee> routees)
        Add routees to the Router. Messages in flight may still be routed to the old Router instance containing the old routees.
      • removeRoutee

        public void removeRoutee​(Routee routee,
                                 boolean stopChild)
      • removeRoutees

        public void removeRoutees​(scala.collection.immutable.Iterable<Routee> routees,
                                  boolean stopChild)
        Remove routees from the Router. Messages in flight may still be routed to the old Router instance containing the old routees.
      • start

        public RoutedActorCell start()
        Description copied from interface: Cell
        Start the cell: enqueued message must not be processed before this has been called. The usual action is to attach the mailbox to a dispatcher.
      • preSuperStart

        protected void preSuperStart()
        Called when router is initialized but before super.start() to be able to do extra initialization in subclass.
      • sendMessage

        public void sendMessage​(Envelope envelope)
        Route the message via the router to the selected destination.