public abstract class NettyInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| Modifier and Type | Class and Description |
|---|---|
class |
NettyInitializer.CompressionRatio |
| Modifier and Type | Field and Description |
|---|---|
protected String |
readSocketTimeoutAction
what to do if the timeout occurs.
|
protected long |
readSocketTimeoutMs
automatically do something if no data is read
|
protected io.netty.handler.ssl.SslContext |
sslCtx
ssl context if enabled
|
protected boolean |
useNettyCompression
turn on/off netty level compression
|
| Constructor and Description |
|---|
NettyInitializer(org.thales.punch.libraries.metrics.api.IMetricContext metricsContext,
io.netty.handler.ssl.SslContext sslCtx,
boolean useNettyCompression,
long readSocketTimeoutMs,
String readSocketTimeoutAction) |
| Modifier and Type | Method and Description |
|---|---|
protected com.codahale.metrics.Counter |
getAppRecvCounter() |
protected com.codahale.metrics.Counter |
getAppSentCounter() |
protected com.codahale.metrics.Counter |
getRawRecvCounter() |
protected com.codahale.metrics.Counter |
getRawSentCounter() |
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved, initChannelprotected io.netty.handler.ssl.SslContext sslCtx
protected long readSocketTimeoutMs
protected String readSocketTimeoutAction
protected boolean useNettyCompression
public NettyInitializer(org.thales.punch.libraries.metrics.api.IMetricContext metricsContext,
io.netty.handler.ssl.SslContext sslCtx,
boolean useNettyCompression,
long readSocketTimeoutMs,
String readSocketTimeoutAction)
metricsContext - the metric contextsslCtx - a ssl context if neededuseNettyCompression - true to qctivate netty level compressionreadSocketTimeoutMs - readSocketTimeoutAction - protected com.codahale.metrics.Counter getRawRecvCounter()
protected com.codahale.metrics.Counter getRawSentCounter()
protected com.codahale.metrics.Counter getAppRecvCounter()
protected com.codahale.metrics.Counter getAppSentCounter()
Copyright © 2023. All rights reserved.