| Constructor and Description |
|---|
SparkMessenger(Vertex vertex,
Iterable<M> incomingMessages) |
| Modifier and Type | Method and Description |
|---|---|
List<<any>> |
getOutgoingMessages() |
Iterator<M> |
receiveMessages(MessageScope messageScope)
The currently executing vertex can receive the messages of the provided
MessageScope. |
void |
sendMessage(MessageScope messageScope,
M message)
The currently executing vertex can send a message with provided
MessageScope. |
public List<<any>> getOutgoingMessages()
public Iterator<M> receiveMessages(MessageScope messageScope)
MessengerMessageScope.receiveMessages in interface Messenger<M>messageScope - the message scope of the messages to receivepublic void sendMessage(MessageScope messageScope, M message)
MessengerMessageScope.sendMessage in interface Messenger<M>messageScope - the message scope of the message being sentmessage - the message to sendCopyright © 2013–2015 Apache Software Foundation. All rights reserved.