@UriEndpoint(firstVersion="2.16.0",
scheme="paho",
title="Paho",
category={MESSAGING,IOT},
syntax="paho:topic")
public class PahoEndpoint
extends org.apache.camel.support.DefaultEndpoint
| Constructor and Description |
|---|
PahoEndpoint(String uri,
String topic,
PahoComponent component,
PahoConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
createExchange(org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage,
String topic) |
protected static org.eclipse.paho.client.mqttv3.MqttClientPersistence |
createMqttClientPersistence(PahoConfiguration configuration) |
protected static org.eclipse.paho.client.mqttv3.MqttConnectOptions |
createMqttConnectOptions(PahoConfiguration config) |
org.apache.camel.Producer |
createProducer() |
org.eclipse.paho.client.mqttv3.MqttClient |
getClient() |
PahoComponent |
getComponent() |
PahoConfiguration |
getConfiguration() |
String |
getTopic() |
void |
setClient(org.eclipse.paho.client.mqttv3.MqttClient client)
To use an existing mqtt client
|
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, 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 PahoEndpoint(String uri, String topic, PahoComponent component, PahoConfiguration configuration)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic PahoComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointpublic String getTopic()
public org.apache.camel.Exchange createExchange(org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage,
String topic)
protected static org.eclipse.paho.client.mqttv3.MqttConnectOptions createMqttConnectOptions(PahoConfiguration config)
protected static org.eclipse.paho.client.mqttv3.MqttClientPersistence createMqttClientPersistence(PahoConfiguration configuration)
public PahoConfiguration getConfiguration()
public org.eclipse.paho.client.mqttv3.MqttClient getClient()
public void setClient(org.eclipse.paho.client.mqttv3.MqttClient client)
Apache Camel