Interface LogicCallCommunicationDecorator
- All Superinterfaces:
CommonDecorator, LogicCommunicationDecorator
- All Known Subinterfaces:
Communication, FlowContext, FlowLogicCallCommunication
- All Known Implementing Classes:
DefaultCommunication, DefaultFlowContext
public interface LogicCallCommunicationDecorator
extends CommonDecorator, LogicCommunicationDecorator
Decorator providing cross-logic-server synchronous and asynchronous call methods with various data type overloads.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-28
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseSynchronous call with no payload.default ResponseSynchronous call with boolean payload.default ResponseCall another logic server synchronously and return the response.default ResponseSynchronous call with int payload.default ResponseSynchronous call with long payload.default ResponseSynchronous call with Object payload.default ResponseSynchronous call with String payload.default ResponseSynchronous call with List payload.default Responsecall(RequestMessage message) Synchronous call using a pre-built request message.default voidAsync call with boolean payload.default voidCall another logic server asynchronously, invoking the callback with the response.default voidAsync call with int payload.default voidAsync call with long payload.default voidAsync call with Object payload.default voidAsync call with String payload.default voidAsync call with no payload.default voidAsync call with List payload.default voidcallAsync(RequestMessage message, Consumer<Response> action) Async call using a pre-built request message with the current executor.default voidcallAsync(RequestMessage message, Consumer<Response> action, Executor executor) Async call using a pre-built request message with a custom executor.default voidAsync call with List<Boolean> payload.default voidAsync call with List<Integer> payload.default voidAsync call with List<Long> payload.default voidAsync call with List<String> payload.default CompletableFuture<Response> callFuture(CmdInfo cmdInfo) Future-based call with no payload.default CompletableFuture<Response> callFuture(CmdInfo cmdInfo, boolean data) Future-based call with boolean payload.default CompletableFuture<Response> callFuture(CmdInfo cmdInfo, byte[] data) Call another logic server and return a CompletableFuture for the response.default CompletableFuture<Response> callFuture(CmdInfo cmdInfo, int data) Future-based call with int payload.default CompletableFuture<Response> callFuture(CmdInfo cmdInfo, long data) Future-based call with long payload.default CompletableFuture<Response> callFuture(CmdInfo cmdInfo, Object data) Future-based call with Object payload.default CompletableFuture<Response> callFuture(CmdInfo cmdInfo, String data) Future-based call with String payload.default CompletableFuture<Response> callFuture(CmdInfo cmdInfo, List<?> dataList) Future-based call with List payload.default CompletableFuture<Response> callFuture(RequestMessage message) Future-based call using a pre-built request message.default CompletableFuture<Response> callFutureListBool(CmdInfo cmdInfo, List<Boolean> dataList) Future-based call with List<Boolean> payload.default CompletableFuture<Response> callFutureListInt(CmdInfo cmdInfo, List<Integer> dataList) Future-based call with List<Integer> payload.default CompletableFuture<Response> callFutureListLong(CmdInfo cmdInfo, List<Long> dataList) Future-based call with List<Long> payload.default CompletableFuture<Response> callFutureListString(CmdInfo cmdInfo, List<String> dataList) Future-based call with List<String> payload.default ResponsecallListBool(CmdInfo cmdInfo, List<Boolean> dataList) Synchronous call with List<Boolean> payload.default ResponsecallListInt(CmdInfo cmdInfo, List<Integer> dataList) Synchronous call with List<Integer> payload.default ResponsecallListLong(CmdInfo cmdInfo, List<Long> dataList) Synchronous call with List<Long> payload.default ResponsecallListString(CmdInfo cmdInfo, List<String> dataList) Synchronous call with List<String> payload.Methods inherited from interface CommonDecorator
getCommunicationAggregation, getCurrentExecutor, getTraceId
-
Method Details
-
call
Synchronous call using a pre-built request message. @see #call(CmdInfo, byte[]) -
call
-
call
-
call
-
call
-
call
-
call
-
call
-
call
-
callListInt
-
callListLong
-
callListBool
-
callListString
-
callFuture
Future-based call using a pre-built request message. @see #callFuture(CmdInfo, byte[]) -
callFuture
Call another logic server and return a CompletableFuture for the response.- Parameters:
cmdInfo- the target command routedata- the raw byte payload- Returns:
- a
CompletableFuturethat completes with the response
-
callFuture
Future-based call with no payload. @see #callFuture(CmdInfo, byte[]) -
callFuture
Future-based call with int payload. @see #callFuture(CmdInfo, byte[]) -
callFuture
Future-based call with long payload. @see #callFuture(CmdInfo, byte[]) -
callFuture
Future-based call with boolean payload. @see #callFuture(CmdInfo, byte[]) -
callFuture
Future-based call with String payload. @see #callFuture(CmdInfo, byte[]) -
callFuture
Future-based call with Object payload. @see #callFuture(CmdInfo, byte[]) -
callFuture
Future-based call with List payload. @see #callFuture(CmdInfo, byte[]) -
callFutureListInt
Future-based call with List<Integer> payload. @see #callFuture(CmdInfo, byte[]) -
callFutureListLong
Future-based call with List<Long> payload. @see #callFuture(CmdInfo, byte[]) -
callFutureListBool
Future-based call with List<Boolean> payload. @see #callFuture(CmdInfo, byte[]) -
callFutureListString
Future-based call with List<String> payload. @see #callFuture(CmdInfo, byte[]) -
callAsync
Async call using a pre-built request message with the current executor. @see #callAsync(CmdInfo, byte[], Consumer) -
callAsync
Async call using a pre-built request message with a custom executor. @see #callAsync(CmdInfo, byte[], Consumer) -
callAsync
Call another logic server asynchronously, invoking the callback with the response.The callback is executed on the current flow context's executor.
- Parameters:
cmdInfo- the target command routedata- the raw byte payloadaction- the callback to invoke with the response
-
callAsync
-
callAsync
-
callAsync
-
callAsync
-
callAsync
-
callAsync
-
callAsync
-
callAsyncListInt
-
callAsyncListLong
-
callAsyncListBool
-
callAsyncListString
-