public class WsTioServerListener extends Object implements TioServerListener
| 构造器和说明 |
|---|
WsTioServerListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onAfterConnected(ChannelContext channelContext,
boolean isConnected,
boolean isReconnect) |
void |
onAfterDecoded(ChannelContext channelContext,
Packet packet,
int packetSize) |
void |
onAfterHandled(ChannelContext channelContext,
Packet packet,
long cost) |
void |
onAfterReceivedBytes(ChannelContext channelContext,
int receivedBytes) |
void |
onAfterSent(ChannelContext channelContext,
Packet packet,
boolean isSentSuccess) |
void |
onBeforeClose(ChannelContext channelContext,
Throwable throwable,
String remark,
boolean isRemove) |
boolean |
onHeartbeatTimeout(ChannelContext channelContext,
Long interval,
int heartbeatTimeoutCount) |
public void onAfterConnected(ChannelContext channelContext, boolean isConnected, boolean isReconnect) throws Exception
onAfterConnected 在接口中 TioListenerExceptionpublic void onAfterDecoded(ChannelContext channelContext, Packet packet, int packetSize) throws Exception
onAfterDecoded 在接口中 TioListenerExceptionpublic void onAfterSent(ChannelContext channelContext, Packet packet, boolean isSentSuccess) throws Exception
onAfterSent 在接口中 TioListenerExceptionpublic void onBeforeClose(ChannelContext channelContext, Throwable throwable, String remark, boolean isRemove) throws Exception
onBeforeClose 在接口中 TioListenerExceptionpublic void onAfterHandled(ChannelContext channelContext, Packet packet, long cost) throws Exception
onAfterHandled 在接口中 TioListenerExceptionpublic void onAfterReceivedBytes(ChannelContext channelContext, int receivedBytes) throws Exception
onAfterReceivedBytes 在接口中 TioListenerExceptionpublic boolean onHeartbeatTimeout(ChannelContext channelContext, Long interval, int heartbeatTimeoutCount)
onHeartbeatTimeout 在接口中 TioServerListenerCopyright © 2022. All rights reserved.