Class QueuedMessageSender

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger LOG  
    • 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
      void addWorkerClient​(int workerId, TransportClient client)  
      void close()  
      void init()  
      java.lang.Runnable notBusyNotifier()  
      java.util.concurrent.CompletableFuture<java.lang.Void> send​(int workerId, MessageType type)
      Send control message, like START and FINISH
      void send​(int workerId, QueuedMessage message)
      Send data message, like VERTEX, EDGE or MSG
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
    • Constructor Detail

      • QueuedMessageSender

        public QueuedMessageSender​(org.apache.hugegraph.computer.core.config.Config config)
    • 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.InterruptedException
        Description copied from interface: MessageSender
        Send control message, like START and FINISH
        Specified by:
        send in interface MessageSender
        Parameters:
        workerId - target workerId
        type - message type
        Throws:
        java.lang.InterruptedException
      • send

        public void send​(int workerId,
                         QueuedMessage message)
                  throws java.lang.InterruptedException
        Description copied from interface: MessageSender
        Send data message, like VERTEX, EDGE or MSG
        Specified by:
        send in interface MessageSender
        Parameters:
        workerId - target workerId
        message - message payload
        Throws:
        java.lang.InterruptedException
      • notBusyNotifier

        public java.lang.Runnable notBusyNotifier()