Java org.springframework.integration.mqtt.outbound MqttPahoMessageHandler fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.integration.mqtt.outbound MqttPahoMessageHandler fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.integration.mqtt.outbound MqttPahoMessageHandler.

The text is from its open source code.

Constructor

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 ).

Method

voidafterPropertiesSet()
voidhandleMessage(Message messageArg)
voidsetAsync(boolean async)
Set to true if you don't want to block when sending messages.
voidsetBeanFactory(BeanFactory beanFactory)
voidsetDefaultTopic(String defaultTopic)
Set the topic to which the message will be published if the #setTopicExpression(Expression) topicExpression evaluates to `null`.
voidstart()
voidstop()