다음을 통해 공유


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:

requestContext - Request context - contains additional information about the request
messageHeaders - Request message headers
requestBody - Request message body

requestResponseAsync

public CompletableFuture requestResponseAsync(ServiceRemotingRequestContext requestContext, ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)

Handles a message from the client that requires a response from the service.

Parameters:

requestContext - Request context - contains additional information about the request
messageHeaders - Request message headers
requestBody - Request message body

Returns:

Response body

Applies to