public interface Messaging<M extends Message>
Messaging allows sending the message to specific vertices by vertex id, or to all all vertices linked by specific link type.
Environment.send(myMessage)
.to(12)
.to(45)
.execute();
Environment.send(myMessage)
.along(LinkClass.class)
.where(link -> link.getData().id > 2)
.withBody((message, link) -> message.price = link.getData().price));
Modifier and Type | Method and Description |
---|---|
Messaging<M> |
to(long target)
Send the message to a specific vertex by id.
|