public abstract class AbstractWebSocketClientHandler extends io.netty.channel.SimpleChannelInboundHandler<Object>
| 限定符和类型 | 字段和说明 |
|---|---|
protected CountDownLatch |
closeCountDownLatch |
protected org.slf4j.Logger |
log |
| 构造器和说明 |
|---|
AbstractWebSocketClientHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e) |
io.netty.channel.ChannelPromise |
getHandshakeFuture() |
protected void |
handleCloseCode(int statusCode) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
protected abstract void |
read(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.websocketx.WebSocketFrame msg) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
void |
waitClose(long timeout,
TimeUnit unit) |
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedprotected org.slf4j.Logger log
protected CountDownLatch closeCountDownLatch
public io.netty.channel.ChannelPromise getHandshakeFuture()
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded 在接口中 io.netty.channel.ChannelHandlerhandlerAdded 在类中 io.netty.channel.ChannelHandlerAdapterpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<Object>protected void handleCloseCode(int statusCode)
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered 在接口中 io.netty.channel.ChannelInboundHandleruserEventTriggered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected abstract void read(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.websocketx.WebSocketFrame msg)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void waitClose(long timeout,
TimeUnit unit)
throws InterruptedException
Copyright © 2022–2023. All rights reserved.