public interface Messenger<M>
Messenger serves as the routing system for messages between vertices. For distributed systems,
 the messenger can implement a "message passing" engine (distributed memory). For single machine systems, the
 messenger can implement a "state sharing" engine (shared memory). Each messenger is tied to the particular
 vertex distributing the message.| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
Iterator<M> receiveMessages()
void sendMessage(MessageScope messageScope, M message)
MessageScope.messageScope - the message scope of the message being sentmessage - the message to sendCopyright © 2013–2022 Apache Software Foundation. All rights reserved.