Class KuaishouConnectionHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<ConnectionHandler>
tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler<KuaishouLiveChatClient,KuaishouConnectionHandler>
tech.ordinaryroad.live.chat.client.kuaishou.netty.handler.KuaishouConnectionHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, tech.ordinaryroad.live.chat.client.servers.netty.handler.base.IBaseConnectionHandler

@Sharable public class KuaishouConnectionHandler extends tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler<KuaishouLiveChatClient,KuaishouConnectionHandler>
Author:
mjz
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields inherited from class tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler

    client
  • Constructor Summary

    Constructors
    Constructor
    Description
    KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, long roomId, KuaishouApis.RoomInitResult roomInitResult, String cookie)
     
    KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener)
     
    KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener, String cookie)
     
    KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, KuaishouApis.RoomInitResult roomInitResult, long roomId)
     
    KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, KuaishouLiveChatClient client)
     
    KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, KuaishouLiveChatClient client, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    sendAuthRequest(io.netty.channel.Channel channel)
     
    void
    sendHeartbeat(io.netty.channel.Channel channel)
     

    Methods inherited from class tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler

    getClient, getHeartbeatInitialDelay, getHeartbeatPeriod

    Methods inherited from class tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler

    channelActive, channelInactive, exceptionCaught, getHandshakePromise, getWebSocketProtocolHandler, handlerAdded, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.netty.channel.ChannelHandler

    handlerRemoved
  • Constructor Details

    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, KuaishouLiveChatClient client, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, KuaishouLiveChatClient client)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener, String cookie)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, long roomId, KuaishouApis.RoomInitResult roomInitResult, String cookie)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(Supplier<io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler> webSocketProtocolHandler, KuaishouApis.RoomInitResult roomInitResult, long roomId)
  • Method Details

    • sendHeartbeat

      public void sendHeartbeat(io.netty.channel.Channel channel)
    • sendAuthRequest

      public void sendAuthRequest(io.netty.channel.Channel channel)
    • getRoomId

      public Object getRoomId()