ServiceRemotingCallbackClient Interface
public interface ServiceRemotingCallbackClient
Defines the interface that must be implemented for providing callback mechanism from the remoting listener to the client.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
oneWayMessage(ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)
Sends a one way message to the client. |
CompletableFuture<byte[]> |
requestResponseAsync(ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)
Sends a message to the client and gets the response. |
Method Details
oneWayMessage
public void oneWayMessage(ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody)
Sends a one way message to the client.
Parameters:
messageHeaders
- Message headers
requestBody
- Message body
Throws:
IOException
- IOException
requestResponseAsync
public CompletableFuture
Sends a message to the client and gets the response.
Parameters:
messageHeaders
- Message headers
requestBody
- Message body
Returns:
Response body
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java