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