Package com.bytedesk.core.socket.mqtt
Class MqttChannelUtils
java.lang.Object
com.bytedesk.core.socket.mqtt.MqttChannelUtils
Various utilities for working with channels
- Author:
- Dominik Obermaier, Christoph Schäbel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<InetAddress>getChannelAddress(io.netty.channel.Channel channel) getChannelIP(io.netty.channel.Channel channel) static StringgetClientId(io.netty.channel.Channel channel) Fetches the clientId from the channel attributes of the passed channelstatic voidsendPubAckMessage(io.netty.channel.Channel channel, int messageId) static voidsendPubRecMessage(io.netty.channel.Channel channel, int messageId)
-
Constructor Details
-
MqttChannelUtils
private MqttChannelUtils()
-
-
Method Details
-
getClientId
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
-
getChannelAddress
-