com.feingto.iot.common.service.mqtt.IMessageConsume Maven / Gradle / Ivy
package com.feingto.iot.common.service.mqtt;
import io.netty.channel.Channel;
import io.netty.handler.codec.mqtt.MqttConnAckMessage;
import io.netty.handler.codec.mqtt.MqttMessage;
import io.netty.handler.codec.mqtt.MqttSubAckMessage;
/**
* 消息消费接口
*
* @author longfei
*/
public interface IMessageConsume {
void connack(MqttConnAckMessage msg);
void publish(Channel channel, MqttMessage msg);
void puback(Channel channel, MqttMessage msg);
void pubrec(Channel channel, MqttMessage msg);
void pubrel(Channel channel, MqttMessage msg);
void pubcomp(Channel channel, MqttMessage msg);
void suback(Channel channel, MqttSubAckMessage msg);
void unsubBack(Channel channel, MqttMessage msg);
void pingreq(Channel channel);
void disconnect(Channel channel);
void exceptionCaught(Throwable cause);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy