public class NettyInitializerHttpClient extends NettyInitializer
ChannelPipeline for a new channel.NettyInitializer.CompressionRatioreadSocketTimeoutAction, readSocketTimeoutMs, sslCtx, useNettyCompression| Constructor and Description |
|---|
NettyInitializerHttpClient(INettyReaderCallback<Map<String,Object>> receiver,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext,
io.netty.handler.ssl.SslContext sslCtx,
String host,
int port,
boolean zipped,
long readSocketTimeoutMs)
Initialzer for the http client netty channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
getAppRecvCounter, getAppSentCounter, getRawRecvCounter, getRawSentCounterchannelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic NettyInitializerHttpClient(INettyReaderCallback<Map<String,Object>> receiver, org.thales.punch.libraries.metrics.api.IMetricContext metricsContext, io.netty.handler.ssl.SslContext sslCtx, String host, int port, boolean zipped, long readSocketTimeoutMs)
Watchout: the zipped flag given here does not set on or off the internal http compression as supported by the http protocol, it sets compression on/off for the whole traffic, at the socket level.
receiver - the data receivermetricsContext - the metric contextsslCtx - a ssl context or nullhost - the destination tcp hostport - the destination portzipped - compression flagreadSocketTimeoutMs - Copyright © 2023. All rights reserved.