Package com.swiftmq.impl.mqtt.connection
Class MQTTConnection
java.lang.Object
com.swiftmq.impl.mqtt.connection.MQTTConnection
- All Implemented Interfaces:
MQTTVisitor
,AssociateSessionCallback
,MqttListener
public class MQTTConnection
extends Object
implements MqttListener, AssociateSessionCallback, MQTTVisitor
-
Constructor Summary
ConstructorDescriptionMQTTConnection
(SwiftletContext ctx, Connection connection, Entity usage, Entity connectionTemplate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
associated
(MQTTSession session) void
close()
void
collect
(long lastCollect) void
dispatch
(POObject event) ActiveLogin
Connection
Entity
Entity
getUsage()
void
initiateClose
(String reason) nextId()
void
void
onMessage
(List<MqttMessage> list) void
toString()
void
void
void
void
visit
(PODisconnect po) void
void
visit
(POProtocolError po) void
void
void
void
void
void
visit
(POSendMessage po) void
void
visit
(POSubscribe po) void
visit
(POUnsubscribe po)
-
Constructor Details
-
MQTTConnection
public MQTTConnection(SwiftletContext ctx, Connection connection, Entity usage, Entity connectionTemplate)
-
-
Method Details
-
getClientId
-
getUsage
public Entity getUsage() -
getConnectionTemplate
public Entity getConnectionTemplate() -
getConnection
public Connection getConnection() -
getActiveLogin
public ActiveLogin getActiveLogin() -
getRemoteHostname
-
getOutboundQueue
-
nextId
-
collect
public void collect(long lastCollect) -
getMqttConnection
- Specified by:
getMqttConnection
in interfaceAssociateSessionCallback
-
associated
- Specified by:
associated
in interfaceAssociateSessionCallback
-
performTimeAction
public void performTimeAction() -
dispatch
public void dispatch(POObject event) -
initiateClose
-
onMessage
- Specified by:
onMessage
in interfaceMqttListener
-
onException
- Specified by:
onException
in interfaceMqttListener
-
close
public void close() -
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
visit
- Specified by:
visit
in interfaceMQTTVisitor
-
toString
-