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