public class NettyInitializerLumberjackClient extends NettyInitializer
ChannelPipeline for a new channel.NettyInitializer.CompressionRatioreadSocketTimeoutAction, readSocketTimeoutMs, sslCtx, useNettyCompression| Constructor and Description |
|---|
NettyInitializerLumberjackClient(NettyReaderByteBufCallback 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 lumberjack client netty channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
getAppRecvCounter, getAppSentCounter, getRawRecvCounter, getRawSentCounterchannelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic NettyInitializerLumberjackClient(NettyReaderByteBufCallback 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 lumberjack compression as supported by the lumberjck 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.