@UriEndpoint(firstVersion="2.10.0",
scheme="mqtt",
title="MQTT",
syntax="mqtt:name",
consumerClass=MQTTConsumer.class,
label="messaging,iot")
public class MQTTEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.AsyncEndpoint
| Constructor and Description |
|---|
MQTTEndpoint(String uri,
MQTTComponent component,
MQTTConfiguration properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createConnection() |
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStart() |
protected void |
doStop() |
MQTTConfiguration |
getConfiguration() |
String |
getName() |
boolean |
isSingleton() |
void |
setName(String name)
A logical name to use which is not the topic name.
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic MQTTEndpoint(String uri, MQTTComponent component, MQTTConfiguration properties)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic MQTTConfiguration getConfiguration()
public String getName()
public void setName(String name)
protected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultEndpointExceptionprotected void createConnection()
protected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultEndpointExceptionpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonApache Camel