Class MqttListener
java.lang.Object
org.wso2.carbon.inbound.endpoint.common.InboundOneTimeTriggerRequestProcessor
org.wso2.carbon.inbound.endpoint.protocol.mqtt.MqttListener
- All Implemented Interfaces:
org.apache.synapse.inbound.InboundRequestProcessor
This is the listener which directly interacts with the external MQTT server. Every MQTT
inbound listener is bound to Server Port, Server Host, Client ID.
-
Field Summary
FieldsFields inherited from class org.wso2.carbon.inbound.endpoint.common.InboundOneTimeTriggerRequestProcessor
COMMON_ENDPOINT_POSTFIX, coordination, name, startInPausedMode, startUpController, synapseEnvironment, TASK_THRESHOLD_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionMqttListener(org.apache.synapse.inbound.InboundProcessorParams params) constructor for the MQTT inbound endpoint listener * -
Method Summary
Methods inherited from class org.wso2.carbon.inbound.endpoint.common.InboundOneTimeTriggerRequestProcessor
activate, deactivate, isDeactivated, pause, start
-
Field Details
-
userName
-
password
-
cleanSession
protected boolean cleanSession
-
-
Constructor Details
-
MqttListener
public MqttListener(org.apache.synapse.inbound.InboundProcessorParams params) constructor for the MQTT inbound endpoint listener *- Parameters:
params-
-
-
Method Details
-
destroy
public void destroy()Description copied from class:InboundOneTimeTriggerRequestProcessorStop the inbound polling processor This will be called when inbound is undeployed/redeployed or when server stop- Specified by:
destroyin interfaceorg.apache.synapse.inbound.InboundRequestProcessor- Overrides:
destroyin classInboundOneTimeTriggerRequestProcessor
-
init
public void init() -
initAsyncClient
public void initAsyncClient() -
start
public void start() -
getName
-
setName
-