Class MqttChannelUtils

java.lang.Object
com.bytedesk.core.socket.mqtt.MqttChannelUtils

public class MqttChannelUtils extends Object
Various utilities for working with channels
Author:
Dominik Obermaier, Christoph Schäbel
  • Constructor Details

    • MqttChannelUtils

      private MqttChannelUtils()
  • Method Details

    • getClientId

      public static String getClientId(@NonNull io.netty.channel.Channel channel)
      Fetches the clientId from the channel attributes of the passed channel
    • sendPubAckMessage

      public static void sendPubAckMessage(io.netty.channel.Channel channel, int messageId)
    • sendPubRecMessage

      public static void sendPubRecMessage(io.netty.channel.Channel channel, int messageId)
    • getChannelIP

      public static Optional<String> getChannelIP(io.netty.channel.Channel channel)
    • getChannelAddress

      public static Optional<InetAddress> getChannelAddress(io.netty.channel.Channel channel)