ServiceRemotingMessageHandler Interface
public interface ServiceRemotingMessageHandler
Defines the interface that must be implemented by the ServiceRemotingListener to receive messages from the remoting transport.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
handleOneWay(ServiceRemotingRequestContext requestContext, ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)
Handles a one way message from the client. |
CompletableFuture<byte[]> |
requestResponseAsync(ServiceRemotingRequestContext requestContext, ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)
Handles a message from the client that requires a response from the service. |
Method Details
handleOneWay
public void handleOneWay(ServiceRemotingRequestContext requestContext, ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)
Handles a one way message from the client.
Parameters:
requestResponseAsync
public CompletableFuture
Handles a message from the client that requires a response from the service.
Parameters:
Returns:
Applies to
Azure SDK for Java