接口的使用
com.iohao.game.action.skeleton.kit.RangeBroadcaster
-
com.iohao.game.action.skeleton.kit中RangeBroadcaster的使用
修饰符和类型方法说明default RangeBroadcaster
RangeBroadcaster.addUserId
(long userId) 接收广播的用户default RangeBroadcaster
RangeBroadcaster.addUserId
(Collection<Long> userIds) 接收广播的用户default RangeBroadcaster
RangeBroadcaster.addUserId
(Collection<Long> userIds, long excludeUserId) 添加接收广播的用户,顺带排除一个不需要接收广播的用户RangeBroadcast.enableEmptyUserCheck()
检测空用户,如果没有任何用户,广播(推送)时将触发异常static RangeBroadcaster
RangeBroadcaster.of
(CommunicationAggregationContext aggregationContext) 创建一个默认的 RangeBroadcaster 对象(框架内置)static RangeBroadcaster
RangeBroadcaster.of
(FlowContext flowContext) 创建一个默认的 RangeBroadcaster 对象(框架内置)default RangeBroadcaster
RangeBroadcaster.removeUserId
(long excludeUserId) 排除 userIdRangeBroadcast.setResponseMessage
(ResponseMessage responseMessage) 设置响应的广播数据 ResponseMessagedefault RangeBroadcaster
RangeBroadcaster.setResponseMessage
(CmdInfo cmdInfo) 设置响应的广播数据default RangeBroadcaster
RangeBroadcaster.setResponseMessage
(CmdInfo cmdInfo, boolean bizData) 设置响应的广播数据。default RangeBroadcaster
RangeBroadcaster.setResponseMessage
(CmdInfo cmdInfo, int bizData) 设置响应的广播数据。default RangeBroadcaster
RangeBroadcaster.setResponseMessage
(CmdInfo cmdInfo, long bizData) 设置响应的广播数据。default RangeBroadcaster
RangeBroadcaster.setResponseMessage
(CmdInfo cmdInfo, Object bizData) 设置响应的广播数据default RangeBroadcaster
RangeBroadcaster.setResponseMessage
(CmdInfo cmdInfo, String bizData) 设置响应的广播数据。RangeBroadcaster.setResponseMessage
(ResponseMessage responseMessage) 设置响应的广播数据 ResponseMessagedefault RangeBroadcaster
RangeBroadcaster.setResponseMessageBoolList
(CmdInfo cmdInfo, List<Boolean> bizData) 设置响应的广播数据。default RangeBroadcaster
RangeBroadcaster.setResponseMessageIntList
(CmdInfo cmdInfo, List<Integer> bizData) 设置响应的广播数据。default RangeBroadcaster
RangeBroadcaster.setResponseMessageList
(CmdInfo cmdInfo, Collection<?> bizData) 设置响应的广播数据。default RangeBroadcaster
RangeBroadcaster.setResponseMessageLongList
(CmdInfo cmdInfo, List<Long> bizData) 设置响应的广播数据。default RangeBroadcaster
RangeBroadcaster.setResponseMessageStringList
(CmdInfo cmdInfo, List<String> bizData) 设置响应的广播数据。