类 SocketIdleHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
com.iohao.game.external.core.netty.handler.SocketIdleHandler
- 所有已实现的接口:
ExternalCoreSettingAware
,io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable
public final class SocketIdleHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
implements ExternalCoreSettingAware
心跳相关的 Handler
- 作者:
- 渔民小镇
- 日期:
- 2023-02-18
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
构造器概要
-
方法概要
修饰符和类型方法说明void
channelRead
(io.netty.channel.ChannelHandlerContext ctx, Object msg) void
setExternalCoreSetting
(ExternalCoreSetting externalCoreSetting) 框架会调用此方法,将 ExternalCoreSetting 对象传入void
userEventTriggered
(io.netty.channel.ChannelHandlerContext ctx, Object evt) 从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
构造器详细资料
-
SocketIdleHandler
public SocketIdleHandler()
-
-
方法详细资料
-
channelRead
- 指定者:
channelRead
在接口中io.netty.channel.ChannelInboundHandler
- 覆盖:
channelRead
在类中io.netty.channel.ChannelInboundHandlerAdapter
-
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - 指定者:
userEventTriggered
在接口中io.netty.channel.ChannelInboundHandler
- 覆盖:
userEventTriggered
在类中io.netty.channel.ChannelInboundHandlerAdapter
- 抛出:
Exception
-
setExternalCoreSetting
从接口复制的说明:ExternalCoreSettingAware
框架会调用此方法,将 ExternalCoreSetting 对象传入- 指定者:
setExternalCoreSetting
在接口中ExternalCoreSettingAware
- 参数:
externalCoreSetting
- externalCoreSetting
-