public class MQTTUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_KEEP_ALIVE_FREQUENCY |
static int |
DEFAULT_SERVER_MESSAGE_BUFFER_SIZE |
static boolean |
DURABLE_MESSAGES |
static int |
MAX_MESSAGE_SIZE |
static String |
MQTT_MESSAGE_ID_KEY |
static String |
MQTT_MESSAGE_RETAIN_KEY |
static String |
MQTT_MESSAGE_TYPE_KEY |
static String |
MQTT_QOS_LEVEL_KEY |
static String |
MQTT_RETAIN_ADDRESS_PREFIX |
static boolean |
SESSION_AUTO_COMMIT_ACKS |
static boolean |
SESSION_AUTO_COMMIT_SENDS |
static boolean |
SESSION_AUTO_CREATE_QUEUE |
static boolean |
SESSION_PREACKNOWLEDGE |
static boolean |
SESSION_XA |
| Constructor and Description |
|---|
MQTTUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertCoreAddressFilterToMQTT(String filter) |
static String |
convertMQTTAddressFilterToCore(String filter) |
static String |
convertMQTTAddressFilterToCoreRetain(String filter) |
static ServerMessage |
createPubRelMessage(MQTTSession session,
org.apache.activemq.artemis.api.core.SimpleString address,
int messageId) |
static ServerMessage |
createServerMessageFromByteBuf(MQTTSession session,
String topic,
boolean retain,
int qos,
io.netty.buffer.ByteBuf payload) |
static ServerMessage |
createServerMessageFromString(MQTTSession session,
String payload,
String topic,
int qos,
boolean retain) |
static void |
logMessage(MQTTSessionState state,
io.netty.handler.codec.mqtt.MqttMessage message,
boolean inbound) |
static String |
swapMQTTAndCoreWildCards(String filter) |
public static final int DEFAULT_SERVER_MESSAGE_BUFFER_SIZE
public static final boolean DURABLE_MESSAGES
public static final boolean SESSION_AUTO_COMMIT_SENDS
public static final boolean SESSION_AUTO_COMMIT_ACKS
public static final boolean SESSION_PREACKNOWLEDGE
public static final boolean SESSION_XA
public static final boolean SESSION_AUTO_CREATE_QUEUE
public static final int MAX_MESSAGE_SIZE
public static final String MQTT_RETAIN_ADDRESS_PREFIX
public static final String MQTT_QOS_LEVEL_KEY
public static final String MQTT_MESSAGE_ID_KEY
public static final String MQTT_MESSAGE_TYPE_KEY
public static final String MQTT_MESSAGE_RETAIN_KEY
public static final int DEFAULT_KEEP_ALIVE_FREQUENCY
public static String convertMQTTAddressFilterToCoreRetain(String filter)
public static ServerMessage createServerMessageFromByteBuf(MQTTSession session, String topic, boolean retain, int qos, io.netty.buffer.ByteBuf payload)
public static ServerMessage createServerMessageFromString(MQTTSession session, String payload, String topic, int qos, boolean retain)
public static ServerMessage createPubRelMessage(MQTTSession session, org.apache.activemq.artemis.api.core.SimpleString address, int messageId)
public static void logMessage(MQTTSessionState state, io.netty.handler.codec.mqtt.MqttMessage message, boolean inbound)
Copyright © 2023 The Apache Software Foundation. All Rights Reserved.