Class MQTTPacketIdGenerator
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.mqtt.MQTTPacketIdGenerator
- All Implemented Interfaces:
org.apache.activemq.Service
Manages PUBLISH packet ids for clients.
- Author:
- Dhiraj Bokde
-
Method Summary
Modifier and TypeMethodDescriptionvoidackPacketId(String clientId, short packetId) protected voiddoStart()protected voiddoStop(ServiceStopper stopper) static MQTTPacketIdGeneratorshortgetNextSequenceId(String clientId) shortsetPacketId(String clientId, MQTTSubscription subscription, org.apache.activemq.command.ActiveMQMessage message, org.fusesource.mqtt.codec.PUBLISH publish) voidstartClientSession(String clientId) booleanstopClientSession(String clientId) Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
-
Method Details
-
doStop
- Specified by:
doStopin classServiceSupport- Throws:
Exception
-
doStart
- Specified by:
doStartin classServiceSupport- Throws:
Exception
-
startClientSession
-
stopClientSession
-
setPacketId
public short setPacketId(String clientId, MQTTSubscription subscription, org.apache.activemq.command.ActiveMQMessage message, org.fusesource.mqtt.codec.PUBLISH publish) -
ackPacketId
-
getNextSequenceId
-
getMQTTPacketIdGenerator
-