Class DefaultMqttConnectStatusListener
- java.lang.Object
-
- br.com.anteros.mqtt.core.server.support.DefaultMqttConnectStatusListener
-
- All Implemented Interfaces:
IMqttConnectStatusListener
public class DefaultMqttConnectStatusListener extends Object implements IMqttConnectStatusListener
默认的链接状态监听- Author:
- L.cm
-
-
Constructor Summary
Constructors Constructor Description DefaultMqttConnectStatusListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidoffline(org.tio.core.ChannelContext context, String clientId, String username)设备离线voidonline(org.tio.core.ChannelContext context, String clientId, String username)设备上线(连接成功)
-
-
-
Method Detail
-
online
public void online(org.tio.core.ChannelContext context, String clientId, String username)Description copied from interface:IMqttConnectStatusListener设备上线(连接成功)- Specified by:
onlinein interfaceIMqttConnectStatusListener- Parameters:
context- ChannelContextclientId- clientIdusername- username
-
offline
public void offline(org.tio.core.ChannelContext context, String clientId, String username)Description copied from interface:IMqttConnectStatusListener设备离线- Specified by:
offlinein interfaceIMqttConnectStatusListener- Parameters:
context- ChannelContextclientId- clientIdusername- username
-
-