类 DouyinConnectionHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>
tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<ConnectionHandler>
所有已实现的接口:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

@Sharable public class DouyinConnectionHandler extends BaseNettyClientConnectionHandler<DouyinLiveChatClient,DouyinConnectionHandler>
作者:
mjz
  • 嵌套类概要

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

    io.netty.channel.ChannelHandler.Sharable
  • 字段概要

    从类继承的字段 tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler

    client
  • 构造器概要

    构造器
    构造器
    说明
    DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId)
     
    DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, String cookie)
     
    DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<DouyinConnectionHandler> listener)
     
    DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<DouyinConnectionHandler> listener, String cookie)
     
    DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, DouyinLiveChatClient client)
     
    DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, DouyinLiveChatClient client, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<DouyinConnectionHandler> listener)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected long
     
    protected long
     
     
    void
    sendAuthRequest(io.netty.channel.Channel channel)
     
    protected void
    sendHeartbeat(io.netty.channel.ChannelHandlerContext ctx)
     

    从类继承的方法 tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler

    getClient

    从类继承的方法 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler

    channelActive, channelRead0, exceptionCaught, getHandshakeFuture, handlerAdded, userEventTriggered

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

    acceptInboundMessage, channelRead

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

    channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged

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

    ensureNotSharable, handlerRemoved, isSharable

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

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

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

    handlerRemoved
  • 构造器详细资料

    • DouyinConnectionHandler

      public DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, DouyinLiveChatClient client, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<DouyinConnectionHandler> listener)
    • DouyinConnectionHandler

      public DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, DouyinLiveChatClient client)
    • DouyinConnectionHandler

      public DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<DouyinConnectionHandler> listener, String cookie)
    • DouyinConnectionHandler

      public DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<DouyinConnectionHandler> listener)
    • DouyinConnectionHandler

      public DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, String cookie)
    • DouyinConnectionHandler

      public DouyinConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId)
  • 方法详细资料

    • sendHeartbeat

      protected void sendHeartbeat(io.netty.channel.ChannelHandlerContext ctx)
      指定者:
      sendHeartbeat 在类中 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<DouyinConnectionHandler>
    • sendAuthRequest

      public void sendAuthRequest(io.netty.channel.Channel channel)
      指定者:
      sendAuthRequest 在类中 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<DouyinConnectionHandler>
    • getHeartbeatPeriod

      protected long getHeartbeatPeriod()
      指定者:
      getHeartbeatPeriod 在类中 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<DouyinConnectionHandler>
    • getHeartbeatInitialDelay

      protected long getHeartbeatInitialDelay()
      指定者:
      getHeartbeatInitialDelay 在类中 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<DouyinConnectionHandler>
    • getRoomId

      public Object getRoomId()