public abstract class NettyAbstractEndpoint extends Object
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.bootstrap.Bootstrap |
bootstrap
our netty client bootstrap.
|
protected String |
host
The listening or destination host host ip address.
|
protected int |
maxPayloadLength
max allowed length
|
protected org.thales.punch.libraries.metrics.api.IMetricContext |
metricsContext
our injected metrics context
|
protected int |
port
The listening or destination port
|
protected String |
protocol
The listening or destination host host ip address.
|
protected String |
readSocketTimeoutAction
what to do if the timeout occurs
|
protected long |
readSocketTimeoutMs
timeout if no data is read for this amount of seconds
|
protected boolean |
ssl
use ssl.
|
protected List<String> |
sslCiphers
default ciphers used by endpoints
|
protected String |
sslProtocol
protocol to use for ssl
|
protected String |
sslProvider
ssl provider to use : JDK, OPENSSL or OPENSSL_REFCNT
|
protected boolean |
useNettyCompression
use compression at the socket level
|
| Constructor and Description |
|---|
NettyAbstractEndpoint(org.thales.punch.settings.api.ISettingsMap settings,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext) |
| Modifier and Type | Method and Description |
|---|---|
static File |
getFileFromString(String content)
Fail stop method to create a temporary file from a string content.
|
protected io.netty.handler.ssl.SslProvider |
getSslProvider(String sslProvider)
Retrieve the sslPorvider class from the name.
|
protected String protocol
protected String host
protected int port
protected long readSocketTimeoutMs
protected String readSocketTimeoutAction
protected boolean useNettyCompression
protected boolean ssl
protected int maxPayloadLength
protected io.netty.bootstrap.Bootstrap bootstrap
protected org.thales.punch.libraries.metrics.api.IMetricContext metricsContext
protected String sslProtocol
protected String sslProvider
public NettyAbstractEndpoint(org.thales.punch.settings.api.ISettingsMap settings,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
protected io.netty.handler.ssl.SslProvider getSslProvider(String sslProvider)
sslProvider - the ssl provider nameCopyright © 2023. All rights reserved.