public class NettyClientInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| 构造器和说明 |
|---|
NettyClientInitializer(io.netty.handler.ssl.SslContext sslContext,
NettyHttpClient.BaseCallback callback,
CountDownLatch latch) |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseWrapper |
getResponse() |
protected void |
initChannel(io.netty.channel.socket.SocketChannel socketChannel) |
void |
resetLatch(CountDownLatch latch) |
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredpublic NettyClientInitializer(io.netty.handler.ssl.SslContext sslContext,
NettyHttpClient.BaseCallback callback,
CountDownLatch latch)
protected void initChannel(io.netty.channel.socket.SocketChannel socketChannel)
throws Exception
initChannel 在类中 io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>Exceptionpublic void resetLatch(CountDownLatch latch)
public ResponseWrapper getResponse()
Copyright © 2017. All Rights Reserved.