Package io.moquette.broker
Class SessionRegistry.PublishedMessage
- java.lang.Object
-
- io.moquette.broker.SessionRegistry.EnqueuedMessage
-
- io.moquette.broker.SessionRegistry.PublishedMessage
-
- Enclosing class:
- SessionRegistry
public static class SessionRegistry.PublishedMessage extends SessionRegistry.EnqueuedMessage
-
-
Constructor Summary
Constructors Constructor Description PublishedMessage(Topic topic, io.netty.handler.codec.mqtt.MqttQoS publishingQos, io.netty.buffer.ByteBuf payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBufgetPayload()io.netty.handler.codec.mqtt.MqttQoSgetPublishingQos()TopicgetTopic()voidrelease()Releases any held resources.voidretain()Retains any held resources.
-
-
-
Constructor Detail
-
PublishedMessage
public PublishedMessage(Topic topic, io.netty.handler.codec.mqtt.MqttQoS publishingQos, io.netty.buffer.ByteBuf payload)
-
-
Method Detail
-
getTopic
public Topic getTopic()
-
getPublishingQos
public io.netty.handler.codec.mqtt.MqttQoS getPublishingQos()
-
getPayload
public io.netty.buffer.ByteBuf getPayload()
-
release
public void release()
Description copied from class:SessionRegistry.EnqueuedMessageReleases any held resources. Must be called when the EnqueuedMessage is no longer needed.- Overrides:
releasein classSessionRegistry.EnqueuedMessage
-
retain
public void retain()
Description copied from class:SessionRegistry.EnqueuedMessageRetains any held resources. Must be called when the EnqueuedMessage is added to a store.- Overrides:
retainin classSessionRegistry.EnqueuedMessage
-
-