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
CommunicationClient.getEndPoint()
CommunicationClient.getListenerName()
CommunicationClient.getResolvedServicePartition()
CommunicationClient.setEndPoint(ResolvedServiceEndpoint endPoint)
CommunicationClient.setListenerName(String listenerName)
CommunicationClient.setResolvedServicePartition(ResolvedServicePartition servicePartition)
Method Details
requestResponseAsync
public CompletableFuture
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java