public final class BrokerInterceptor extends Object implements Interceptor
| 构造器和说明 |
|---|
BrokerInterceptor(int poolSize) |
BrokerInterceptor(int poolSize,
List<InterceptHandler> handlers) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInterceptHandler(InterceptHandler interceptHandler) |
void |
notifyClientConnected(io.netty.handler.codec.mqtt.MqttConnectMessage msg) |
void |
notifyClientConnectionLost(String clientID,
String username) |
void |
notifyClientDisconnected(String clientID,
String username) |
void |
notifyMessageAcknowledged(InterceptAcknowledgedMessage msg) |
void |
notifyTopicPublished(io.netty.handler.codec.mqtt.MqttPublishMessage msg,
String clientID,
String username) |
void |
notifyTopicSubscribed(Subscription sub,
String username) |
void |
notifyTopicUnsubscribed(String topic,
String clientID,
String username) |
void |
removeInterceptHandler(InterceptHandler interceptHandler) |
void |
stop()
Shutdown graciously the executor service
|
public BrokerInterceptor(int poolSize,
List<InterceptHandler> handlers)
public BrokerInterceptor(int poolSize)
public void stop()
public void notifyClientConnected(io.netty.handler.codec.mqtt.MqttConnectMessage msg)
notifyClientConnected 在接口中 Interceptorpublic void notifyClientDisconnected(String clientID, String username)
notifyClientDisconnected 在接口中 Interceptorpublic void notifyClientConnectionLost(String clientID, String username)
notifyClientConnectionLost 在接口中 Interceptorpublic void notifyTopicPublished(io.netty.handler.codec.mqtt.MqttPublishMessage msg,
String clientID,
String username)
notifyTopicPublished 在接口中 Interceptorpublic void notifyTopicSubscribed(Subscription sub, String username)
notifyTopicSubscribed 在接口中 Interceptorpublic void notifyTopicUnsubscribed(String topic, String clientID, String username)
notifyTopicUnsubscribed 在接口中 Interceptorpublic void notifyMessageAcknowledged(InterceptAcknowledgedMessage msg)
notifyMessageAcknowledged 在接口中 Interceptorpublic void addInterceptHandler(InterceptHandler interceptHandler)
addInterceptHandler 在接口中 Interceptorpublic void removeInterceptHandler(InterceptHandler interceptHandler)
removeInterceptHandler 在接口中 InterceptorCopyright © 2021. All rights reserved.