Package akka.routing

Interface Listeners

  • All Known Subinterfaces:
    FSM<S,​D>, LoggingFSM<S,​D>
    All Known Implementing Classes:
    AbstractFSM, AbstractFSMWithStash, AbstractLoggingFSM, ClusterSingletonManager

    public interface Listeners
    Listeners is a generic trait to implement listening capability on an Actor.

    Use the gossip(msg) method to have it sent to the listeners.

    Send Listen(self) to start listening.

    Send Deafen(self) to stop listening.

    Send WithListeners(fun) to traverse the current listeners.
    • Method Detail

      • akka$routing$Listeners$_setter_$listeners_$eq

        void akka$routing$Listeners$_setter_$listeners_$eq​(java.util.Set<ActorRef> x$1)
      • gossip

        void gossip​(java.lang.Object msg,
                    ActorRef sender)
        Sends the supplied message to all current listeners using the provided sender() as sender.
      • gossip$default$2

        ActorRef gossip$default$2​(java.lang.Object msg)
      • listenerManagement

        scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> listenerManagement()
        Chain this into the receive function.

         def receive = listenerManagement orElse … 
      • listeners

        java.util.Set<ActorRef> listeners()