Class TinkerMessenger<M>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.tinkergraph.process.computer.TinkerMessenger<M>
-
-
Constructor Summary
Constructors Constructor Description TinkerMessenger(Vertex vertex, org.apache.tinkerpop.gremlin.tinkergraph.process.computer.TinkerMessageBoard<M> messageBoard, Optional<MessageCombiner<M>> combiner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 providedMessageScope
.
-
-
-
Constructor Detail
-
TinkerMessenger
public TinkerMessenger(Vertex vertex, org.apache.tinkerpop.gremlin.tinkergraph.process.computer.TinkerMessageBoard<M> messageBoard, Optional<MessageCombiner<M>> combiner)
-
-
Method Detail
-
receiveMessages
public Iterator<M> receiveMessages()
Description copied from interface:Messenger
Receive all incoming messages to the currently executing vertex.- Specified by:
receiveMessages
in interfaceMessenger<M>
- Returns:
- the messages for the vertex
-
sendMessage
public void sendMessage(MessageScope messageScope, M message)
Description copied from interface:Messenger
The currently executing vertex can send a message with providedMessageScope
.- Specified by:
sendMessage
in interfaceMessenger<M>
- Parameters:
messageScope
- the message scope of the message being sentmessage
- the message to send
-
-