Interface LogicCallCollectCommunicationDecorator
- All Superinterfaces:
CommonDecorator, LogicCommunicationDecorator
- All Known Subinterfaces:
Communication, FlowContext, FlowLogicCallCollectCommunication
- All Known Implementing Classes:
DefaultCommunication, DefaultFlowContext
public interface LogicCallCollectCommunicationDecorator
extends CommonDecorator, LogicCommunicationDecorator
Decorator providing cross-logic-server collect-style calls that aggregate responses from multiple logic servers.
All methods in this interface are enterprise-only and throw EnterpriseSupportException by default.
The enterprise implementation overrides these defaults with actual collect-call logic.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-28
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseCollectcallCollect(CmdInfo cmdInfo) Synchronous collect-call with no payload.default ResponseCollectcallCollect(CmdInfo cmdInfo, boolean data) Synchronous collect-call with boolean payload.default ResponseCollectcallCollect(CmdInfo cmdInfo, byte[] data) Call all logic servers that handle the given command and collect their responses synchronously.default ResponseCollectcallCollect(CmdInfo cmdInfo, int data) Synchronous collect-call with int payload.default ResponseCollectcallCollect(CmdInfo cmdInfo, long data) Synchronous collect-call with long payload.default ResponseCollectcallCollect(CmdInfo cmdInfo, Object data) Synchronous collect-call with Object payload.default ResponseCollectcallCollect(CmdInfo cmdInfo, String data) Synchronous collect-call with String payload.default ResponseCollectcallCollect(CmdInfo cmdInfo, List<?> dataList) Synchronous collect-call with List payload.default ResponseCollectcallCollect(RequestMessage message) Synchronous collect-call using a pre-built request message.default voidcallCollectAsync(CmdInfo cmdInfo, boolean data, Consumer<ResponseCollect> action) Async collect-call with boolean payload.default voidcallCollectAsync(CmdInfo cmdInfo, byte[] data, Consumer<ResponseCollect> action) Call all logic servers asynchronously, invoking the callback with the aggregated response.default voidcallCollectAsync(CmdInfo cmdInfo, int data, Consumer<ResponseCollect> action) Async collect-call with int payload.default voidcallCollectAsync(CmdInfo cmdInfo, long data, Consumer<ResponseCollect> action) Async collect-call with long payload.default voidcallCollectAsync(CmdInfo cmdInfo, Object data, Consumer<ResponseCollect> action) Async collect-call with Object payload.default voidcallCollectAsync(CmdInfo cmdInfo, String data, Consumer<ResponseCollect> action) Async collect-call with String payload.default voidcallCollectAsync(CmdInfo cmdInfo, Consumer<ResponseCollect> action) Async collect-call with no payload.default voidcallCollectAsync(CmdInfo cmdInfo, List<?> dataList, Consumer<ResponseCollect> action) Async collect-call with List payload.default voidcallCollectAsync(RequestMessage message, Consumer<ResponseCollect> action) Async collect-call using a pre-built request message with the current executor.default voidcallCollectAsync(RequestMessage message, Consumer<ResponseCollect> action, Executor executor) Async collect-call using a pre-built request message with a custom executor.default voidcallCollectAsyncListBool(CmdInfo cmdInfo, List<Boolean> dataList, Consumer<ResponseCollect> action) Async collect-call with List<Boolean> payload.default voidcallCollectAsyncListInt(CmdInfo cmdInfo, List<Integer> dataList, Consumer<ResponseCollect> action) Async collect-call with List<Integer> payload.default voidcallCollectAsyncListLong(CmdInfo cmdInfo, List<Long> dataList, Consumer<ResponseCollect> action) Async collect-call with List<Long> payload.default voidcallCollectAsyncListString(CmdInfo cmdInfo, List<String> dataList, Consumer<ResponseCollect> action) Async collect-call with List<String> payload.default CompletableFuture<ResponseCollect> callCollectFuture(CmdInfo cmdInfo) Future-based collect-call with no payload.default CompletableFuture<ResponseCollect> callCollectFuture(CmdInfo cmdInfo, boolean data) Future-based collect-call with boolean payload.default CompletableFuture<ResponseCollect> callCollectFuture(CmdInfo cmdInfo, byte[] data) Call all logic servers that handle the given command and return a CompletableFuture for the aggregated response.default CompletableFuture<ResponseCollect> callCollectFuture(CmdInfo cmdInfo, int data) Future-based collect-call with int payload.default CompletableFuture<ResponseCollect> callCollectFuture(CmdInfo cmdInfo, long data) Future-based collect-call with long payload.default CompletableFuture<ResponseCollect> callCollectFuture(CmdInfo cmdInfo, Object data) Future-based collect-call with Object payload.default CompletableFuture<ResponseCollect> callCollectFuture(CmdInfo cmdInfo, String data) Future-based collect-call with String payload.default CompletableFuture<ResponseCollect> callCollectFuture(CmdInfo cmdInfo, List<?> dataList) Future-based collect-call with List payload.default CompletableFuture<ResponseCollect> callCollectFuture(RequestMessage message) Future-based collect-call using a pre-built request message.default CompletableFuture<ResponseCollect> callCollectFutureListBool(CmdInfo cmdInfo, List<Boolean> dataList) Future-based collect-call with List<Boolean> payload.default CompletableFuture<ResponseCollect> callCollectFutureListInt(CmdInfo cmdInfo, List<Integer> dataList) Future-based collect-call with List<Integer> payload.default CompletableFuture<ResponseCollect> callCollectFutureListLong(CmdInfo cmdInfo, List<Long> dataList) Future-based collect-call with List<Long> payload.default CompletableFuture<ResponseCollect> callCollectFutureListString(CmdInfo cmdInfo, List<String> dataList) Future-based collect-call with List<String> payload.default ResponseCollectcallCollectListBool(CmdInfo cmdInfo, List<Boolean> dataList) Synchronous collect-call with List<Boolean> payload.default ResponseCollectcallCollectListInt(CmdInfo cmdInfo, List<Integer> dataList) Synchronous collect-call with List<Integer> payload.default ResponseCollectcallCollectListLong(CmdInfo cmdInfo, List<Long> dataList) Synchronous collect-call with List<Long> payload.default ResponseCollectcallCollectListString(CmdInfo cmdInfo, List<String> dataList) Synchronous collect-call with List<String> payload.Methods inherited from interface CommonDecorator
getCommunicationAggregation, getCurrentExecutor, getTraceId
-
Method Details
-
callCollect
Synchronous collect-call using a pre-built request message. @see #callCollect(CmdInfo, byte[]) -
callCollect
Call all logic servers that handle the given command and collect their responses synchronously.- Parameters:
cmdInfo- the target command routedata- the raw byte payload- Returns:
- the aggregated response from all matching logic servers
-
callCollect
Synchronous collect-call with no payload. @see #callCollect(CmdInfo, byte[]) -
callCollect
Synchronous collect-call with int payload. @see #callCollect(CmdInfo, byte[]) -
callCollect
Synchronous collect-call with long payload. @see #callCollect(CmdInfo, byte[]) -
callCollect
Synchronous collect-call with boolean payload. @see #callCollect(CmdInfo, byte[]) -
callCollect
Synchronous collect-call with String payload. @see #callCollect(CmdInfo, byte[]) -
callCollect
Synchronous collect-call with Object payload. @see #callCollect(CmdInfo, byte[]) -
callCollect
Synchronous collect-call with List payload. @see #callCollect(CmdInfo, byte[]) -
callCollectListInt
Synchronous collect-call with List<Integer> payload. @see #callCollect(CmdInfo, byte[]) -
callCollectListLong
Synchronous collect-call with List<Long> payload. @see #callCollect(CmdInfo, byte[]) -
callCollectListBool
Synchronous collect-call with List<Boolean> payload. @see #callCollect(CmdInfo, byte[]) -
callCollectListString
Synchronous collect-call with List<String> payload. @see #callCollect(CmdInfo, byte[]) -
callCollectFuture
Future-based collect-call using a pre-built request message. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFuture
Call all logic servers that handle the given command and return a CompletableFuture for the aggregated response.- Parameters:
cmdInfo- the target command routedata- the raw byte payload- Returns:
- a
CompletableFuturethat completes with the aggregated response
-
callCollectFuture
Future-based collect-call with no payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFuture
Future-based collect-call with int payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFuture
Future-based collect-call with long payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFuture
Future-based collect-call with boolean payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFuture
Future-based collect-call with String payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFuture
Future-based collect-call with Object payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFuture
Future-based collect-call with List payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFutureListInt
default CompletableFuture<ResponseCollect> callCollectFutureListInt(CmdInfo cmdInfo, List<Integer> dataList) Future-based collect-call with List<Integer> payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFutureListLong
default CompletableFuture<ResponseCollect> callCollectFutureListLong(CmdInfo cmdInfo, List<Long> dataList) Future-based collect-call with List<Long> payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFutureListBool
default CompletableFuture<ResponseCollect> callCollectFutureListBool(CmdInfo cmdInfo, List<Boolean> dataList) Future-based collect-call with List<Boolean> payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectFutureListString
default CompletableFuture<ResponseCollect> callCollectFutureListString(CmdInfo cmdInfo, List<String> dataList) Future-based collect-call with List<String> payload. @see #callCollectFuture(CmdInfo, byte[]) -
callCollectAsync
Async collect-call using a pre-built request message with the current executor. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsync
default void callCollectAsync(RequestMessage message, Consumer<ResponseCollect> action, Executor executor) Async collect-call using a pre-built request message with a custom executor. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsync
Call all logic servers asynchronously, invoking the callback with the aggregated response.- Parameters:
cmdInfo- the target command routedata- the raw byte payloadaction- the callback to invoke with the aggregated response
-
callCollectAsync
Async collect-call with no payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsync
Async collect-call with int payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsync
Async collect-call with long payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsync
Async collect-call with boolean payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsync
Async collect-call with String payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsync
Async collect-call with Object payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsync
Async collect-call with List payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsyncListInt
default void callCollectAsyncListInt(CmdInfo cmdInfo, List<Integer> dataList, Consumer<ResponseCollect> action) Async collect-call with List<Integer> payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsyncListLong
default void callCollectAsyncListLong(CmdInfo cmdInfo, List<Long> dataList, Consumer<ResponseCollect> action) Async collect-call with List<Long> payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsyncListBool
default void callCollectAsyncListBool(CmdInfo cmdInfo, List<Boolean> dataList, Consumer<ResponseCollect> action) Async collect-call with List<Boolean> payload. @see #callCollectAsync(CmdInfo, byte[], Consumer) -
callCollectAsyncListString
default void callCollectAsyncListString(CmdInfo cmdInfo, List<String> dataList, Consumer<ResponseCollect> action) Async collect-call with List<String> payload. @see #callCollectAsync(CmdInfo, byte[], Consumer)
-