public class NettyRelpServerImpl extends NettyAbstractServer implements NettySocketServer<RELPFrame>
bossGroup, sslCtx, sslSessionResumption, workerGroupbootstrap, host, maxPayloadLength, metricsContext, port, protocol, readSocketTimeoutAction, readSocketTimeoutMs, ssl, sslCiphers, sslProtocol, sslProvider, useNettyCompression| Constructor and Description |
|---|
NettyRelpServerImpl(org.thales.punch.settings.api.ISettingsMap settings,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
Create a new single-threaded asynchronous TCP server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListeningAddress(org.thales.punch.settings.api.ISettingsMap address)
Add a listening socket to this server thread.
|
void |
run()
Effectively runs the server.
|
NettyRelpServerImpl |
setCallback(INettyReaderCallback<RELPFrame> handler) |
String |
toString() |
isStopped, start, stopgetFileFromString, getSslProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisStopped, stoppublic NettyRelpServerImpl(org.thales.punch.settings.api.ISettingsMap settings,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
settings - metricsContext - the metric contextpublic NettyRelpServerImpl setCallback(INettyReaderCallback<RELPFrame> handler)
setCallback in interface NettySocketServer<RELPFrame>handler - your data callbackpublic void run()
NettySocketServerNettySocketServer.stop() is made.run in interface Runnablerun in interface NettySocketServer<RELPFrame>public void addListeningAddress(org.thales.punch.settings.api.ISettingsMap address)
NettySocketServeraddListeningAddress in interface NettySocketServer<RELPFrame>address - the host port address.Copyright © 2023. All rights reserved.