Interface TransportClient

    • Method Detail

      • send

        boolean send​(MessageType messageType,
                     int partition,
                     java.nio.ByteBuffer buffer)
              throws TransportException
        Send the buffer to the server. Return false if unable send data immediately. This method is called zero or many times in iteration.
        Throws:
        TransportException - if failed, the job will fail.
      • finishSession

        void finishSession()
                    throws TransportException
        This method is called after an iteration. It will block the caller to make sure the buffers sent be received by target workers.
        Throws:
        TransportException
      • remoteAddress

        java.net.InetSocketAddress remoteAddress()
        Get the remote SocketAddress
      • active

        boolean active()
        To check whether the connection is active to use
        Returns:
        true if connection is active
      • sessionActive

        boolean sessionActive()
        To check whether the session is active to use
        Returns:
        true if session is active