public class MQTTProtocolManager extends AbstractProtocolManager<io.netty.handler.codec.mqtt.MqttMessage,MQTTInterceptor,MQTTConnection> implements org.apache.activemq.artemis.core.server.management.NotificationListener
getPrefixes, getSecurityDomain, invokeInterceptors, setAnycastPrefix, setMulticastPrefix, setSecurityDomainpublic void onNotification(org.apache.activemq.artemis.core.server.management.Notification notification)
onNotification in interface org.apache.activemq.artemis.core.server.management.NotificationListenerpublic ProtocolManagerFactory getFactory()
getFactory in interface ProtocolManager<MQTTInterceptor>public void updateInterceptors(List incoming, List outgoing)
updateInterceptors in interface ProtocolManager<MQTTInterceptor>public ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
createConnectionEntry in interface ProtocolManager<MQTTInterceptor>public boolean acceptsNoHandshake()
acceptsNoHandshake in interface ProtocolManager<MQTTInterceptor>public void removeHandler(String name)
removeHandler in interface ProtocolManager<MQTTInterceptor>public void handleBuffer(RemotingConnection connection, ActiveMQBuffer buffer)
handleBuffer in interface ProtocolManager<MQTTInterceptor>public void addChannelHandlers(io.netty.channel.ChannelPipeline pipeline)
addChannelHandlers in interface ProtocolManager<MQTTInterceptor>public boolean isProtocol(byte[] array)
isProtocol in interface ProtocolManager<MQTTInterceptor>public void handshake(org.apache.activemq.artemis.core.remoting.impl.netty.NettyServerConnection connection, ActiveMQBuffer buffer)
handshake in interface ProtocolManager<MQTTInterceptor>public List<String> websocketSubprotocolIdentifiers()
websocketSubprotocolIdentifiers in interface ProtocolManager<MQTTInterceptor>public String invokeIncoming(io.netty.handler.codec.mqtt.MqttMessage mqttMessage, MQTTConnection connection)
public String invokeOutgoing(io.netty.handler.codec.mqtt.MqttMessage mqttMessage, MQTTConnection connection)
public boolean isClientConnected(String clientId, MQTTConnection connection)
public void removeConnectedClient(String clientId)
public MQTTConnection addConnectedClient(String clientId, MQTTConnection connection)
clientId - connection - MQTTConnection that the added connection replaced or null if there was no previous entry for
the clientIdpublic MQTTSessionState getSessionState(String clientId)
public MQTTSessionState removeSessionState(String clientId)
public Map<String,MQTTSessionState> getSessionStates()
public Map<String,MQTTConnection> getConnectedClients()
Copyright © 2021 The Apache Software Foundation. All rights reserved.