package com.bonus.common.houqin.mq.rocket.mqtt;

import org.eclipse.paho.mqttv5.client.IMqttToken;
import org.eclipse.paho.mqttv5.client.MqttCallback;
import org.eclipse.paho.mqttv5.client.MqttDisconnectResponse;
import org.eclipse.paho.mqttv5.common.MqttException;
import org.eclipse.paho.mqttv5.common.packet.MqttProperties;

public interface MqttCallbacks extends MqttCallback {
   default void disconnected(MqttDisconnectResponse disconnectResponse) {
   }

   default void mqttErrorOccurred(MqttException exception) {
   }

   default void deliveryComplete(IMqttToken token) {
   }

   default void authPacketArrived(int reasonCode, MqttProperties properties) {
   }
}
