Paho

Paho

Scheme: paho
Syntax: paho:topic
Description: Component for communicating with MQTT M2M message brokers using Eclipse Paho MQTT Client.
Deprecated:false
Async:false
Maven: org.apache.camel/camel-paho/2.18.1.redhat-000025

Component for communicating with MQTT M2M message brokers using Eclipse Paho MQTT Client.

Name Kind Group Required Default Type Enum Description
topic path common true java.lang.String Name of the topic
brokerUrl parameter common tcp://localhost:1883 java.lang.String The URL of the MQTT broker.
clientId parameter common java.lang.String MQTT client identifier.
connectOptions parameter common org.eclipse.paho.client.mqttv3.MqttConnectOptions Client connection options
filePersistenceDirectory parameter common Current directory java.lang.String Base directory used by the file persistence provider.
persistence parameter common MEMORY org.apache.camel.component.paho.PahoPersistence FILE
MEMORY
Client persistence to be used - memory or file.
qos parameter common 2 int Client quality of service level (0-2).
retained parameter common false boolean Retain option @param retained true/false
bridgeErrorHandler parameter consumer boolean Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exceptionHandler parameter consumer (advanced) org.apache.camel.spi.ExceptionHandler To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exchangePattern parameter consumer (advanced) org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the exchange pattern when the consumer creates an exchange.
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

paho consumer