Class MqttConnectCallback
java.lang.Object
energy.eddie.regionconnector.aiida.mqtt.callback.MqttConnectCallback
- All Implemented Interfaces:
org.eclipse.paho.mqttv5.client.MqttActionListener
public class MqttConnectCallback
extends Object
implements org.eclipse.paho.mqttv5.client.MqttActionListener
-
Constructor Summary
ConstructorsConstructorDescriptionMqttConnectCallback(org.eclipse.paho.mqttv5.client.MqttAsyncClient client, org.eclipse.paho.mqttv5.client.MqttConnectionOptions connectionOptions, MqttEventPublisher eventPublisher, org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler) Creates a new MqttConnectCallback that will retry the connection after 15s delay if theonFailure(IMqttToken, Throwable)listener is called by theclient. -
Method Summary
-
Constructor Details
-
MqttConnectCallback
public MqttConnectCallback(org.eclipse.paho.mqttv5.client.MqttAsyncClient client, org.eclipse.paho.mqttv5.client.MqttConnectionOptions connectionOptions, MqttEventPublisher eventPublisher, org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler) Creates a new MqttConnectCallback that will retry the connection after 15s delay if theonFailure(IMqttToken, Throwable)listener is called by theclient.
-
-
Method Details
-
onSuccess
public void onSuccess(org.eclipse.paho.mqttv5.client.IMqttToken asyncActionToken) - Specified by:
onSuccessin interfaceorg.eclipse.paho.mqttv5.client.MqttActionListener
-
onFailure
public void onFailure(org.eclipse.paho.mqttv5.client.IMqttToken asyncActionToken, Throwable exception) - Specified by:
onFailurein interfaceorg.eclipse.paho.mqttv5.client.MqttActionListener
-