Interface MqttSubscribeResultHandler
-
public interface MqttSubscribeResultHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(MqttConnection connection, java.lang.Throwable cause)will be called when error occurred during subscribing a topicvoidonSuccess(MqttConnection connection, java.util.List<MqttSubscription> subscriptions)will be called when a topic subscribed successfully
-
-
-
Method Detail
-
onSuccess
void onSuccess(MqttConnection connection, java.util.List<MqttSubscription> subscriptions)
will be called when a topic subscribed successfully- Parameters:
connection- the mqtt connectionsubscriptions- subscribed subscriptions
-
onError
void onError(MqttConnection connection, java.lang.Throwable cause)
will be called when error occurred during subscribing a topic- Parameters:
connection- the mqtt connectioncause- cause
-
-