@Service(value="mqttSenderImpl") public class ChannelSenderImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,CallSubpackageMsg<MsgRsp>> |
CALLBACKS |
| Constructor and Description |
|---|
ChannelSenderImpl(IaENV iaEnv,
IaConf iaConf,
IMqttSender mqttSender,
MqttLogUtil mqttLogUtil,
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor mqttSenderAckExecutor) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,CallSubpackageMsg<MsgRsp>> |
getCALLBACKS() |
void |
messageReceiver(org.springframework.messaging.Message<String> message)
回复通道
|
void |
sendToMqtt(String serverCode,
String operaCode,
int qos,
String payload) |
void |
sendToMqtt(String serverCode,
String operaCode,
String payload) |
boolean |
sendToMqttBoolean(String serverCode,
String operaCode,
int qos,
String payload) |
boolean |
sendToMqttBoolean(String msgId,
String serverCode,
String operaCode,
int qos,
List<MqttMsg> mqttMsgArr) |
MsgResult |
sendToMqttSync(String serverCode,
String operaCode,
int qos,
String payload,
long timeout,
TimeUnit timeUnit) |
MsgResult |
sendToMqttSync(String serverCode,
String operaCode,
String payload) |
protected static final Map<String,CallSubpackageMsg<MsgRsp>> CALLBACKS
public ChannelSenderImpl(IaENV iaEnv, IaConf iaConf, IMqttSender mqttSender, MqttLogUtil mqttLogUtil, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor mqttSenderAckExecutor)
public void sendToMqtt(String serverCode, String operaCode, String payload) throws Exception
Exceptionpublic void sendToMqtt(String serverCode, String operaCode, int qos, String payload) throws Exception
Exceptionpublic boolean sendToMqttBoolean(String msgId, String serverCode, String operaCode, int qos, List<MqttMsg> mqttMsgArr)
public boolean sendToMqttBoolean(String serverCode, String operaCode, int qos, String payload)
public MsgResult sendToMqttSync(String serverCode, String operaCode, int qos, String payload, long timeout, TimeUnit timeUnit)
@ServiceActivator(inputChannel="mqttReplyBoundChannel") public void messageReceiver(org.springframework.messaging.Message<String> message)
message - public Map<String,CallSubpackageMsg<MsgRsp>> getCALLBACKS()
Copyright © 2025. All rights reserved.