类 MessageMqttConfiguration
java.lang.Object
cn.herodotus.engine.message.mqtt.configuration.MessageMqttConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnMqttEnabled
@EnableConfigurationProperties(MqttProperties.class)
@IntegrationComponentScan(basePackages="cn.herodotus.engine.message.mqtt.gateway")
@ComponentScan(basePackages="cn.herodotus.engine.message.mqtt.messaging")
public class MessageMqttConfiguration
extends Object
Description: Mqtt 模块配置
Mqtt 协议框架中没有“客户端”和“服务端”概念,只有 Broker 和 Client。所有接入 Broker 的组件都是 Client。如果使用本组件,那么包含本组件的应用即为 Client。
Mqtt 中的 Inbound 和 Outbound 均为 Client 中的概念,对应 Client 的数据 "输入"和 "输出" · Inbound:入站,对应的是接受某个被订阅主题的数据,即 Subscribe · Outbound:出站,对应的是向某个主题发送数据,即 Publish
- 作者:
- : gengwei.zheng
- Date:
- : 2023/9/10 17:24
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient,org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager(MqttProperties mqttProperties) org.springframework.integration.core.MessageProducermqttDefaultInbound(org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient, org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager, org.springframework.messaging.MessageChannel mqttDefaultInboundChannel, MqttProperties mqttProperties) org.springframework.messaging.MessageChannelorg.springframework.messaging.MessageHandlermqttDefaultOutbound(org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient, org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager, MqttProperties mqttProperties) org.springframework.messaging.MessageChannelvoid
-
构造器详细资料
-
MessageMqttConfiguration
public MessageMqttConfiguration()
-
-
方法详细资料
-
postConstruct
@PostConstruct public void postConstruct() -
mqttDefaultInboundChannel
@Bean(name="mqttDefaultInboundChannel") public org.springframework.messaging.MessageChannel mqttDefaultInboundChannel() -
mqttDefaultOutboundChannel
@Bean(name="mqttDefaultOutboundChannel") public org.springframework.messaging.MessageChannel mqttDefaultOutboundChannel() -
clientManager
@Bean public org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient,org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager(MqttProperties mqttProperties) -
mqttDefaultInbound
@Bean public org.springframework.integration.core.MessageProducer mqttDefaultInbound(org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient, org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager, @Qualifier("mqttDefaultInboundChannel") org.springframework.messaging.MessageChannel mqttDefaultInboundChannel, MqttProperties mqttProperties) -
mqttDefaultOutbound
@Bean @ServiceActivator(inputChannel="mqttDefaultOutboundChannel") public org.springframework.messaging.MessageHandler mqttDefaultOutbound(org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient, org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager, MqttProperties mqttProperties)
-