Interface SyncEndpointClientSpi


  • public interface SyncEndpointClientSpi
    SPI of the client endpoint using a synchronous network protocol.

    You must provide an implementation of this interface if you plan to use a Client-Server communication protocol, such as standard HTTP for example.

    This endpoint interacts only with a remote server controller.

    Since:
    2.0.0
    • Method Detail

      • sendRequest

        java.util.List<MessageDto> sendRequest​(MessageDto message)
        Invoked by the SyncNodeClient node to send a MessageDto to the server.
        You have to serialize and send the provided MessageDto to the server, then retry the response which is a list of MessageDto.
        Parameters:
        message - The message to send.
        Returns:
        a null or empty list if there is no result.
        Since:
        2.0.0