Interface LogicCommunication
- All Superinterfaces:
PublisherCommunication
- All Known Subinterfaces:
CommunicationAggregation
- All Known Implementing Classes:
DefaultCommunicationAggregation
Interface for inter-logic-server communication.
Extends PublisherCommunication and provides fire-and-forget sending,
asynchronous call, and blocking call methods for logic-to-logic messaging.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-04
-
Method Summary
Modifier and TypeMethodDescriptioncall(RequestMessage message) Call another logic server and block until a response is received.callFuture(RequestMessage message) Call another logic server asynchronously and return a future for the response.voidsend(SendMessage message) Send a message to another logic server without expecting a response (fire-and-forget).Methods inherited from interface PublisherCommunication
publishMessage, publishMessage, publishMessageByNetId
-
Method Details
-
send
Send a message to another logic server without expecting a response (fire-and-forget).- Parameters:
message- the send message
-
callFuture
Call another logic server asynchronously and return a future for the response.- Parameters:
message- the request message- Returns:
- a
CompletableFuturethat completes with the response
-
call
Call another logic server and block until a response is received.- Parameters:
message- the request message- Returns:
- the response from the target logic server
-