Interface LogicSendCommunicationDecorator
- All Superinterfaces:
CommonDecorator
- All Known Subinterfaces:
Communication, FlowContext, FlowLogicSendCommunication
- All Known Implementing Classes:
DefaultCommunication, DefaultFlowContext
Decorator providing fire-and-forget message sending to other logic servers.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-28
-
Method Summary
Modifier and TypeMethodDescriptiondefault SendMessageofSendMessage(CmdInfo cmdInfo, boolean data) Create a SendMessage with boolean payload.default SendMessageofSendMessage(CmdInfo cmdInfo, byte[] data) Create a SendMessage for the given command with raw byte data.default SendMessageofSendMessage(CmdInfo cmdInfo, int data) Create a SendMessage with int payload.default SendMessageofSendMessage(CmdInfo cmdInfo, long data) Create a SendMessage with long payload.default SendMessageofSendMessage(CmdInfo cmdInfo, Object data) Create a SendMessage with Object payload.default SendMessageofSendMessage(CmdInfo cmdInfo, String data) Create a SendMessage with String payload.default SendMessageofSendMessage(CmdInfo cmdInfo, List<?> dataList) Create a SendMessage with List payload.default SendMessageofSendMessageListBool(CmdInfo cmdInfo, List<Boolean> dataList) Create a SendMessage with List<Boolean> payload.default SendMessageofSendMessageListInt(CmdInfo cmdInfo, List<Integer> dataList) Create a SendMessage with List<Integer> payload.default SendMessageofSendMessageListLong(CmdInfo cmdInfo, List<Long> dataList) Create a SendMessage with List<Long> payload.default SendMessageofSendMessageListString(CmdInfo cmdInfo, List<String> dataList) Create a SendMessage with List<String> payload.default voidSend with no payload.default voidSend with boolean payload.default voidSend raw bytes to another logic server.default voidSend with int payload.default voidSend with long payload.default voidSend with Object payload.default voidSend with String payload.default voidSend with List payload.default voidsend(SendMessage message) Send a message to another logic server.default voidsendListBool(CmdInfo cmdInfo, List<Boolean> dataList) Send with List<Boolean> payload.default voidsendListInt(CmdInfo cmdInfo, List<Integer> dataList) Send with List<Integer> payload.default voidsendListLong(CmdInfo cmdInfo, List<Long> dataList) Send with List<Long> payload.default voidsendListString(CmdInfo cmdInfo, List<String> dataList) Send with List<String> payload.Methods inherited from interface CommonDecorator
getCommunicationAggregation, getCurrentExecutor, getTraceId
-
Method Details
-
ofSendMessage
Create a SendMessage for the given command with raw byte data.Populates the message with trace context, net ID, and source server ID from the current flow context.
- Parameters:
cmdInfo- the target command routedata- the raw byte payload- Returns:
- a fully initialized
SendMessage
-
ofSendMessage
Create a SendMessage with int payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessage
Create a SendMessage with long payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessage
Create a SendMessage with boolean payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessage
Create a SendMessage with String payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessage
Create a SendMessage with Object payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessage
Create a SendMessage with List payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessageListInt
Create a SendMessage with List<Integer> payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessageListLong
Create a SendMessage with List<Long> payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessageListBool
Create a SendMessage with List<Boolean> payload. @see #ofSendMessage(CmdInfo, byte[]) -
ofSendMessageListString
Create a SendMessage with List<String> payload. @see #ofSendMessage(CmdInfo, byte[]) -
send
Send a message to another logic server.This is a fire-and-forget operation; no response is returned.
- Parameters:
message- the message to send
-
send
Send raw bytes to another logic server. @see #send(SendMessage) -
send
Send with no payload. @see #send(SendMessage) -
send
Send with int payload. @see #send(SendMessage) -
send
Send with long payload. @see #send(SendMessage) -
send
Send with boolean payload. @see #send(SendMessage) -
send
-
send
-
send
-
sendListInt
-
sendListLong
-
sendListBool
-
sendListString
-