类 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.messaging.MessageChannelorg.springframework.messaging.MessageChannelorg.springframework.integration.core.MessageProducermqttInbound(org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient, org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager, org.springframework.messaging.MessageChannel mqtt5InboundChannel, MqttProperties mqttProperties) org.springframework.messaging.MessageHandlerorg.springframework.messaging.MessageHandlermqttOutbound(org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient, org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager, MqttProperties mqttProperties) void
-
构造器详细资料
-
MessageMqttConfiguration
public MessageMqttConfiguration()
-
-
方法详细资料
-
postConstruct
@PostConstruct public void postConstruct() -
mqtt5InboundChannel
@Bean public org.springframework.messaging.MessageChannel mqtt5InboundChannel() -
mqtt5OutboundChannel
@Bean public org.springframework.messaging.MessageChannel mqtt5OutboundChannel() -
clientManager
@Bean public org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient,org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager(MqttProperties mqttProperties) -
mqttInbound
@Bean public org.springframework.integration.core.MessageProducer mqttInbound(org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient, org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager, org.springframework.messaging.MessageChannel mqtt5InboundChannel, MqttProperties mqttProperties) -
mqttOutbound
@Bean @ServiceActivator(inputChannel="mqtt5OutboundChannel") public org.springframework.messaging.MessageHandler mqttOutbound(org.springframework.integration.mqtt.core.ClientManager<org.eclipse.paho.mqttv5.client.IMqttAsyncClient, org.eclipse.paho.mqttv5.client.MqttConnectionOptions> clientManager, MqttProperties mqttProperties) -
mqttInboundHandler
@Bean @ServiceActivator(inputChannel="mqtt5InboundChannel") public org.springframework.messaging.MessageHandler mqttInboundHandler()
-