Interface IMqttClientGlobalMessageListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IMqttClientGlobalMessageListener
mqtt 全局消息处理
Author:
L.cm
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMessage(org.tio.core.ChannelContext context, String topic, org.dromara.mica.mqtt.codec.MqttPublishMessage message, byte[] payload)
    监听到消息
  • Method Details

    • onMessage

      void onMessage(org.tio.core.ChannelContext context, String topic, org.dromara.mica.mqtt.codec.MqttPublishMessage message, byte[] payload)
      监听到消息
      Parameters:
      context - ChannelContext
      topic - topic
      message - MqttPublishMessage
      payload - payload