|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Listeners
Listeners is a generic trait to implement listening capability on an Actor.
Use thegossip(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 Summary | |
---|---|
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()
|
Method Detail |
---|
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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |