public interface ConsoleCommunication
Modifier and Type | Method and Description |
---|---|
MessageDispatchRegistry |
getMessageDispatchRegistry()
Returns the message dispatch registry which callers can use to register new
message handlers.
|
boolean |
processOneMessage()
Wait to receive a message, then process it.
|
void |
sendToAddressedAgents(Address address,
Message message)
Send the given message to the given agent processes (which may pass it on
to its workers).
|
void |
sendToAgents(Message message)
Send the given message to the agent processes (which may pass it on to
their workers).
|
void |
shutdown()
Shut down communication.
|
MessageDispatchRegistry getMessageDispatchRegistry()
void shutdown()
boolean processOneMessage()
true
if we processed a message successfully;
false
if we've been shut down.shutdown()
void sendToAgents(Message message)
message
- The message to send.Copyright © 2000-2014. All Rights Reserved.