类 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>
tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler<DouyinLiveChatClient,DouyinConnectionHandler>
tech.ordinaryroad.live.chat.client.douyin.netty.handler.DouyinConnectionHandler
- 所有已实现的接口:
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 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
-
构造器详细资料
-
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
-