类 KuaishouConnectionHandler
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>
tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler<KuaishouLiveChatClient,KuaishouConnectionHandler>
tech.ordinaryroad.live.chat.client.kuaishou.netty.handler.KuaishouConnectionHandler
- 所有已实现的接口:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable
public class KuaishouConnectionHandler
extends BaseNettyClientConnectionHandler<KuaishouLiveChatClient,KuaishouConnectionHandler>
- 作者:
- mjz
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
字段概要
从类继承的字段 tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler
client -
构造器概要
构造器构造器说明KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, String cookie) KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener) KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener, String cookie) KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouApis.RoomInitResult roomInitResult, long roomId) KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouLiveChatClient client) KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouLiveChatClient client, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener) -
方法概要
修饰符和类型方法说明protected longprotected longvoidsendAuthRequest(io.netty.channel.Channel channel) protected voidsendHeartbeat(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
-
构造器详细资料
-
KuaishouConnectionHandler
public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouLiveChatClient client, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener) -
KuaishouConnectionHandler
public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouLiveChatClient client) -
KuaishouConnectionHandler
public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener, String cookie) -
KuaishouConnectionHandler
public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener) -
KuaishouConnectionHandler
public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, String cookie) -
KuaishouConnectionHandler
public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouApis.RoomInitResult roomInitResult, long roomId)
-
-
方法详细资料
-
sendHeartbeat
protected void sendHeartbeat(io.netty.channel.ChannelHandlerContext ctx) - 指定者:
sendHeartbeat在类中tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<KuaishouConnectionHandler>
-
sendAuthRequest
public void sendAuthRequest(io.netty.channel.Channel channel) - 指定者:
sendAuthRequest在类中tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<KuaishouConnectionHandler>
-
getHeartbeatPeriod
protected long getHeartbeatPeriod()- 指定者:
getHeartbeatPeriod在类中tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<KuaishouConnectionHandler>
-
getHeartbeatInitialDelay
protected long getHeartbeatInitialDelay()- 指定者:
getHeartbeatInitialDelay在类中tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<KuaishouConnectionHandler>
-
getRoomId
-