public interface Listeners
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.| Modifier and Type | Method and Description |
|---|---|
void |
gossip(java.lang.Object msg,
ActorRef sender)
Sends the supplied message to all current listeners using the provided sender() as sender.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
listenerManagement()
Chain this into the receive function.
|
java.util.Set<ActorRef> |
listeners() |
java.util.Set<ActorRef> listeners()
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> listenerManagement()
def receive = listenerManagement orElse … void gossip(java.lang.Object msg,
ActorRef sender)
msg - sender -