Test your knowledge
The Eclipse Paho Java Client provides:
Only a blocking (synchronous) API.
Only a non-blocking (asynchronous) API.
Both a blocking (synchronous) and a non-blocking (asynchronous) API.
In the Paho Java API, an instance of
MqttAsyncClient
represents:The synchronous MQTT client.
The asynchronous MQTT client.
The asynchronous MQTT message.
After the
MqttAsyncClient
instance establishes a connection with the MQTT server, which of the following methods declared in theIMqttActionListener
interface will be called?onSuccess
.connectCallback
.onConnect
.
After the
MqttAsyncClient
instance receives a message from one of the topic filters to which it has subscribed, which of the following methods declared in theMqttCallback
interface will be called?onSuccess
.onMessage
.messageArrived
.
Which of the following methods of an
MqttConnectOptions
instance allows you to set a last will message?setLastWillMessage
.setLastWill
.setWill
.