public interface SyncNodeServer
You must bind this kind of node on the server's side if you plan to use a Client-Server communication protocol, such as standard HTTP for example.
Keyple provides its own implementations of this interface and manages their lifecycle.
This kind of node can be bind to a all server remote plugins and local services :
RemotePluginServer
LocalServiceServer
PoolLocalServiceServer
RemotePluginServerUtils.getSyncNode()
LocalServiceServerUtils.getSyncNode()
PoolLocalServiceServerUtils.getSyncNode()
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MessageDto> |
onRequest(MessageDto msg)
Must be invoked by the server controller endpoint following the reception and deserialization
of a
MessageDto from the client. |
java.util.List<MessageDto> onRequest(MessageDto msg)
MessageDto from the client. Following the receive of a request, the controller
must :
SyncNodeServer using one of the following utility methods,
depending on your use case :
RemotePluginServerUtils.getSyncNode()
LocalServiceServerUtils.getSyncNode()
PoolLocalServiceServerUtils.getSyncNode()
msg - The message to process.java.lang.IllegalArgumentException - if some arguments are incorrect.