Package | Description |
---|---|
org.eclipse.paho.client.mqttv3 |
Contains a programming interface enabling applications to communicate with an MQTT server.
|
org.eclipse.paho.client.mqttv3.internal |
Modifier and Type | Interface and Description |
---|---|
interface |
IMqttDeliveryToken
Provides a mechanism for tracking the delivery of a message.
|
Modifier and Type | Class and Description |
---|---|
class |
MqttDeliveryToken
Provides a mechanism to track the delivery progress of a message.
|
class |
MqttToken
Provides a mechanism for tracking the completion of an asynchronous action.
|
Modifier and Type | Method and Description |
---|---|
IMqttToken |
MqttAsyncClient.checkPing(Object userContext,
IMqttActionListener callback) |
IMqttToken |
IMqttAsyncClient.connect()
Connects to an MQTT server using the default options.
|
IMqttToken |
MqttAsyncClient.connect() |
IMqttToken |
IMqttAsyncClient.connect(MqttConnectOptions options)
Connects to an MQTT server using the provided connect options.
|
IMqttToken |
MqttAsyncClient.connect(MqttConnectOptions options) |
IMqttToken |
IMqttAsyncClient.connect(MqttConnectOptions options,
Object userContext,
IMqttActionListener callback)
Connects to an MQTT server using the specified options.
|
IMqttToken |
MqttAsyncClient.connect(MqttConnectOptions options,
Object userContext,
IMqttActionListener callback) |
IMqttToken |
IMqttAsyncClient.connect(Object userContext,
IMqttActionListener callback)
Connects to an MQTT server using the default options.
|
IMqttToken |
MqttAsyncClient.connect(Object userContext,
IMqttActionListener callback) |
IMqttToken |
MqttClient.connectWithResult(MqttConnectOptions options) |
IMqttToken |
IMqttClient.connectWithResult(MqttConnectOptions options)
Connects to an MQTT server using the specified options.
|
IMqttToken |
IMqttAsyncClient.disconnect()
Disconnects from the server.
|
IMqttToken |
MqttAsyncClient.disconnect() |
IMqttToken |
IMqttAsyncClient.disconnect(long quiesceTimeout)
Disconnects from the server.
|
IMqttToken |
MqttAsyncClient.disconnect(long quiesceTimeout) |
IMqttToken |
IMqttAsyncClient.disconnect(long quiesceTimeout,
Object userContext,
IMqttActionListener callback)
Disconnects from the server.
|
IMqttToken |
MqttAsyncClient.disconnect(long quiesceTimeout,
Object userContext,
IMqttActionListener callback) |
IMqttToken |
IMqttAsyncClient.disconnect(Object userContext,
IMqttActionListener callback)
Disconnects from the server.
|
IMqttToken |
MqttAsyncClient.disconnect(Object userContext,
IMqttActionListener callback) |
IMqttToken |
IMqttAsyncClient.subscribe(String[] topicFilters,
int[] qos)
Subscribe to multiple topics, each of which may include wildcards.
|
IMqttToken |
MqttAsyncClient.subscribe(String[] topicFilters,
int[] qos) |
IMqttToken |
IMqttAsyncClient.subscribe(String[] topicFilters,
int[] qos,
Object userContext,
IMqttActionListener callback)
Subscribes to multiple topics, each of which may include wildcards.
|
IMqttToken |
MqttAsyncClient.subscribe(String[] topicFilters,
int[] qos,
Object userContext,
IMqttActionListener callback) |
IMqttToken |
IMqttAsyncClient.subscribe(String topicFilter,
int qos)
Subscribe to a topic, which may include wildcards.
|
IMqttToken |
MqttAsyncClient.subscribe(String topicFilter,
int qos) |
IMqttToken |
IMqttAsyncClient.subscribe(String topicFilter,
int qos,
Object userContext,
IMqttActionListener callback)
Subscribe to a topic, which may include wildcards.
|
IMqttToken |
MqttAsyncClient.subscribe(String topicFilter,
int qos,
Object userContext,
IMqttActionListener callback) |
IMqttToken |
IMqttAsyncClient.unsubscribe(String topicFilter)
Requests the server unsubscribe the client from a topic.
|
IMqttToken |
MqttAsyncClient.unsubscribe(String topicFilter) |
IMqttToken |
IMqttAsyncClient.unsubscribe(String[] topicFilters)
Requests the server unsubscribe the client from one or more topics.
|
IMqttToken |
MqttAsyncClient.unsubscribe(String[] topicFilters) |
IMqttToken |
IMqttAsyncClient.unsubscribe(String[] topicFilters,
Object userContext,
IMqttActionListener callback)
Requests the server unsubscribe the client from one or more topics.
|
IMqttToken |
MqttAsyncClient.unsubscribe(String[] topicFilters,
Object userContext,
IMqttActionListener callback) |
IMqttToken |
IMqttAsyncClient.unsubscribe(String topicFilter,
Object userContext,
IMqttActionListener callback)
Requests the server unsubscribe the client from a topics.
|
IMqttToken |
MqttAsyncClient.unsubscribe(String topicFilter,
Object userContext,
IMqttActionListener callback) |
Modifier and Type | Method and Description |
---|---|
void |
IMqttActionListener.onFailure(IMqttToken asyncActionToken,
Throwable exception)
This method is invoked when an action fails.
|
void |
IMqttActionListener.onSuccess(IMqttToken asyncActionToken)
This method is invoked when an action has completed successfully.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectActionListener.onFailure(IMqttToken token,
Throwable exception)
The connect failed, so try the next URI on the list.
|
void |
ConnectActionListener.onSuccess(IMqttToken token)
If the connect succeeded then call the users onSuccess callback
|
Copyright © 2017 Eclipse Paho. All rights reserved.