public class MQTTProtocolManager extends AbstractProtocolManager<io.netty.handler.codec.mqtt.MqttMessage,MQTTInterceptor,MQTTConnection,MQTTRedirectHandler> implements org.apache.activemq.artemis.core.server.management.NotificationListener
getPrefixes, getSecurityDomain, invokeInterceptors, setAnycastPrefix, setMulticastPrefix, setSecurityDomainpublic int getDefaultMqttSessionExpiryInterval()
public MQTTProtocolManager setDefaultMqttSessionExpiryInterval(int sessionExpiryInterval)
public 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,MQTTRedirectHandler>public void updateInterceptors(List incoming, List outgoing)
updateInterceptors in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public void scanSessions()
public ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
createConnectionEntry in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public boolean acceptsNoHandshake()
acceptsNoHandshake in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public void removeHandler(String name)
removeHandler in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public void handleBuffer(RemotingConnection connection, ActiveMQBuffer buffer)
handleBuffer in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public void addChannelHandlers(io.netty.channel.ChannelPipeline pipeline)
addChannelHandlers in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public boolean isProtocol(byte[] array)
isProtocol in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public void handshake(org.apache.activemq.artemis.core.remoting.impl.netty.NettyServerConnection connection, ActiveMQBuffer buffer)
handshake in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public List<String> websocketSubprotocolIdentifiers()
websocketSubprotocolIdentifiers in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>public MQTTRedirectHandler getRedirectHandler()
getRedirectHandler in interface ProtocolManager<MQTTInterceptor,MQTTRedirectHandler>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 © 2022 The Apache Software Foundation. All rights reserved.