public class NettyInitializerServer<T> extends NettyInitializer
ChannelPipeline for a new channel.NettyInitializer.CompressionRatioreadSocketTimeoutAction, readSocketTimeoutMs, sslCtx, useNettyCompression| Constructor and Description |
|---|
NettyInitializerServer(INettyReaderCallback<T> receiver,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext,
io.netty.handler.ssl.SslContext sslCtx,
boolean zipped,
long readSocketTimeoutMs,
Supplier<io.netty.channel.ChannelHandler> supplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
getAppRecvCounter, getAppSentCounter, getRawRecvCounter, getRawSentCounterchannelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic NettyInitializerServer(INettyReaderCallback<T> receiver, org.thales.punch.libraries.metrics.api.IMetricContext metricsContext, io.netty.handler.ssl.SslContext sslCtx, boolean zipped, long readSocketTimeoutMs, Supplier<io.netty.channel.ChannelHandler> supplier)
receiver - metricsContext - sslCtx - zipped - readSocketTimeoutMs - supplier - a channel handler supplier. Can return null to read in plain tcp frames.Copyright © 2023. All rights reserved.