类 SocketUserSessionHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
com.iohao.game.external.core.netty.handler.SocketUserSessionHandler
所有已实现的接口:
BrokerClientAware, UserSessionsAware, io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

@Sharable public final class SocketUserSessionHandler extends io.netty.channel.ChannelInboundHandlerAdapter implements UserSessionsAware, BrokerClientAware
作者:
渔民小镇
日期:
2023-02-19
  • 嵌套类概要

    从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    channelActive(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    channelInactive(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
     
    void
    setUserSessions(UserSessions<?,?> userSessions)
    框架会调用此方法,将 UserSessions 对象传入

    从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

    channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered

    从类继承的方法 io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 com.iohao.game.bolt.broker.core.aware.BrokerClientAware

    setBrokerClient

    从接口继承的方法 io.netty.channel.ChannelHandler

    handlerAdded, handlerRemoved
  • 构造器详细资料

    • SocketUserSessionHandler

      public SocketUserSessionHandler()
  • 方法详细资料

    • setUserSessions

      public void setUserSessions(UserSessions<?,?> userSessions)
      从接口复制的说明: UserSessionsAware
      框架会调用此方法,将 UserSessions 对象传入
      指定者:
      setUserSessions 在接口中 UserSessionsAware
      参数:
      userSessions - userSessions
    • channelActive

      public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelActive 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelInactive 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • exceptionCaught

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
      指定者:
      exceptionCaught 在接口中 io.netty.channel.ChannelHandler
      指定者:
      exceptionCaught 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      exceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception