Example usage for Java org.springframework.integration.mqtt.outbound MqttPahoMessageHandler fields, constructors, methods, implement or subclass
The text is from its open source code.
MqttPahoMessageHandler(String clientId, MqttPahoClientFactory clientFactory) Use this constructor if the server URI(s) are provided by the MqttConnectOptions#getServerURIs() provided by the MqttPahoClientFactory . | |
MqttPahoMessageHandler(String url, String clientId) Use this URL when you don't need additional MqttConnectOptions . | |
MqttPahoMessageHandler(String url, String clientId, MqttPahoClientFactory clientFactory) Use this constructor for a single url (although it may be overridden if the server URI(s) are provided by the MqttConnectOptions#getServerURIs() provided by the MqttPahoClientFactory ). |
void | afterPropertiesSet() |
void | handleMessage(Message> messageArg) |
void | setAsync(boolean async) Set to true if you don't want to block when sending messages. |
void | setBeanFactory(BeanFactory beanFactory) |
void | setDefaultTopic(String defaultTopic) Set the topic to which the message will be published if the #setTopicExpression(Expression) topicExpression evaluates to `null`. |
void | start() |
void | stop() |