Interface BroadcastUserListCommunicationDecorator
- All Superinterfaces:
CommonDecorator
- All Known Subinterfaces:
Communication, FlowBroadcastCommunication, FlowContext
- All Known Implementing Classes:
DefaultCommunication, DefaultFlowContext
Decorator providing broadcast methods to send messages to a list of users by their IDs.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-28
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidbroadcast(BroadcastUserListMessage message) Broadcast a pre-built user-list message.default voidbroadcastUsers(Collection<Long> userIdList, CmdInfo cmdInfo) Broadcast with no payload to a list of users.default voidbroadcastUsers(Collection<Long> userIdList, CmdInfo cmdInfo, boolean data) Broadcast with boolean payload to a list of users.default voidbroadcastUsers(Collection<Long> userIdList, CmdInfo cmdInfo, byte[] data) Broadcast raw bytes to a list of users.default voidbroadcastUsers(Collection<Long> userIdList, CmdInfo cmdInfo, int data) Broadcast with int payload to a list of users.default voidbroadcastUsers(Collection<Long> userIdList, CmdInfo cmdInfo, long data) Broadcast with long payload to a list of users.default voidbroadcastUsers(Collection<Long> userIdList, CmdInfo cmdInfo, Object data) Broadcast with Object payload to a list of users.default voidbroadcastUsers(Collection<Long> userIdList, CmdInfo cmdInfo, String data) Broadcast with String payload to a list of users.default voidbroadcastUsers(Collection<Long> userIdList, CmdInfo cmdInfo, List<?> dataList) Broadcast with List payload to a list of users.default voidbroadcastUsersListBool(Collection<Long> userIdList, CmdInfo cmdInfo, List<Boolean> dataList) Broadcast with List<Boolean> payload to a list of users.default voidbroadcastUsersListInt(Collection<Long> userIdList, CmdInfo cmdInfo, List<Integer> dataList) Broadcast with List<Integer> payload to a list of users.default voidbroadcastUsersListLong(Collection<Long> userIdList, CmdInfo cmdInfo, List<Long> dataList) Broadcast with List<Long> payload to a list of users.default voidbroadcastUsersListString(Collection<Long> userIdList, CmdInfo cmdInfo, List<String> dataList) Broadcast with List<String> payload to a list of users.Methods inherited from interface CommonDecorator
getCommunicationAggregation, getCurrentExecutor, getTraceId
-
Method Details
-
broadcast
Broadcast a pre-built user-list message. @see #broadcastUsers(Collection, CmdInfo, byte[]) -
broadcastUsers
Broadcast raw bytes to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsers
Broadcast with no payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsers
Broadcast with int payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsers
Broadcast with long payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsers
Broadcast with boolean payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsers
Broadcast with String payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsers
Broadcast with Object payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsers
Broadcast with List payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsersListInt
default void broadcastUsersListInt(Collection<Long> userIdList, CmdInfo cmdInfo, List<Integer> dataList) Broadcast with List<Integer> payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsersListLong
default void broadcastUsersListLong(Collection<Long> userIdList, CmdInfo cmdInfo, List<Long> dataList) Broadcast with List<Long> payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsersListBool
default void broadcastUsersListBool(Collection<Long> userIdList, CmdInfo cmdInfo, List<Boolean> dataList) Broadcast with List<Boolean> payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object) -
broadcastUsersListString
default void broadcastUsersListString(Collection<Long> userIdList, CmdInfo cmdInfo, List<String> dataList) Broadcast with List<String> payload to a list of users. @see #broadcastUsers(Collection, CmdInfo, byte[], Object)
-