@UriEndpoint(firstVersion="3.8.0",
scheme="paho-mqtt5",
title="Paho MQTT 5",
category={MESSAGING,IOT},
syntax="paho-mqtt5:topic")
public class PahoMqtt5Endpoint
extends org.apache.camel.support.DefaultEndpoint
| Constructor and Description |
|---|
PahoMqtt5Endpoint(String uri,
String topic,
PahoMqtt5Component component,
PahoMqtt5Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected static org.eclipse.paho.mqttv5.client.MqttClientPersistence |
createMqttClientPersistence(PahoMqtt5Configuration configuration) |
protected org.eclipse.paho.mqttv5.client.MqttConnectionOptions |
createMqttConnectionOptions() |
org.apache.camel.Producer |
createProducer() |
protected static String |
generateClientId() |
org.eclipse.paho.mqttv5.client.MqttClient |
getClient() |
PahoMqtt5Component |
getComponent() |
PahoMqtt5Configuration |
getConfiguration() |
String |
getTopic() |
void |
setClient(org.eclipse.paho.mqttv5.client.MqttClient client)
To use an existing mqtt client
|
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic PahoMqtt5Endpoint(String uri, String topic, PahoMqtt5Component component, PahoMqtt5Configuration configuration)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic PahoMqtt5Component getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointpublic String getTopic()
protected org.eclipse.paho.mqttv5.client.MqttConnectionOptions createMqttConnectionOptions()
protected static String generateClientId()
protected static org.eclipse.paho.mqttv5.client.MqttClientPersistence createMqttClientPersistence(PahoMqtt5Configuration configuration)
public PahoMqtt5Configuration getConfiguration()
public org.eclipse.paho.mqttv5.client.MqttClient getClient()
public void setClient(org.eclipse.paho.mqttv5.client.MqttClient client)
Apache Camel