Interface ExternalCommunication
- All Known Subinterfaces:
CommunicationAggregation
- All Known Implementing Classes:
DefaultCommunicationAggregation
public interface ExternalCommunication
Interface for communicating with external (client-facing) servers.
Provides both asynchronous and blocking methods to send a request to an external server and receive a response.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-07
-
Method Summary
Modifier and TypeMethodDescriptioncallExternal(ExternalRequestMessage message) Send a request to an external server and block until a response is received.callExternalFuture(ExternalRequestMessage message) Send a request to an external server asynchronously.
-
Method Details
-
callExternalFuture
Send a request to an external server asynchronously.- Parameters:
message- the external request message- Returns:
- a
CompletableFuturethat completes with the external response
-
callExternal
Send a request to an external server and block until a response is received.- Parameters:
message- the external request message- Returns:
- the external response
-