Class QueuedMessageSender
- java.lang.Object
-
- org.apache.hugegraph.computer.core.sender.QueuedMessageSender
-
- All Implemented Interfaces:
MessageSender
public class QueuedMessageSender extends java.lang.Object implements MessageSender
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description QueuedMessageSender(org.apache.hugegraph.computer.core.config.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWorkerClient(int workerId, TransportClient client)voidclose()voidinit()java.lang.RunnablenotBusyNotifier()java.util.concurrent.CompletableFuture<java.lang.Void>send(int workerId, MessageType type)Send control message, like START and FINISHvoidsend(int workerId, QueuedMessage message)Send data message, like VERTEX, EDGE or MSG
-
-
-
Method Detail
-
init
public void init()
-
close
public void close()
-
addWorkerClient
public void addWorkerClient(int workerId, TransportClient client)
-
send
public java.util.concurrent.CompletableFuture<java.lang.Void> send(int workerId, MessageType type) throws java.lang.InterruptedExceptionDescription copied from interface:MessageSenderSend control message, like START and FINISH- Specified by:
sendin interfaceMessageSender- Parameters:
workerId- target workerIdtype- message type- Throws:
java.lang.InterruptedException
-
send
public void send(int workerId, QueuedMessage message) throws java.lang.InterruptedExceptionDescription copied from interface:MessageSenderSend data message, like VERTEX, EDGE or MSG- Specified by:
sendin interfaceMessageSender- Parameters:
workerId- target workerIdmessage- message payload- Throws:
java.lang.InterruptedException
-
notBusyNotifier
public java.lang.Runnable notBusyNotifier()
-
-