Interface MessageSender

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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
    • Method Detail

      • send

        java.util.concurrent.CompletableFuture<java.lang.Void> send​(int workerId,
                                                                    MessageType type)
                                                             throws java.lang.InterruptedException
        Send control message, like START and FINISH
        Parameters:
        workerId - target workerId
        type - message type
        Throws:
        java.lang.InterruptedException
      • send

        void send​(int workerId,
                  QueuedMessage message)
           throws java.lang.InterruptedException
        Send data message, like VERTEX, EDGE or MSG
        Parameters:
        workerId - target workerId
        message - message payload
        Throws:
        java.lang.InterruptedException