你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceRemotingClient Interface

public interface ServiceRemotingClient extends CommunicationClient

Defines the interface that must be implemented to provide a client for Service Remoting communication.

Method Summary

Modifier and Type Method and Description
CompletableFuture<byte[]> requestResponseAsync(ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)

Sends a message to the service and gets a response back.

void sendOneWay(ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)

Sends a one-way message to the service

Inherited Members

Method Details

requestResponseAsync

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

Sends a message to the service and gets a response back.

Parameters:

messageHeaders - Message headers
requestBody - Message body

Returns:

Response body

sendOneWay

public void sendOneWay(ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)

Sends a one-way message to the service

Parameters:

messageHeaders - Message headers
requestBody - Message body

Applies to