public class NettyHttpServerImpl extends NettyAbstractServer implements INettyReaderCallback<Map<String,Object>>, NettySocketServer<Map<String,Object>>
bossGroup, sslCtx, sslSessionResumption, workerGroupbootstrap, host, maxPayloadLength, metricsContext, port, protocol, readSocketTimeoutAction, readSocketTimeoutMs, ssl, sslCiphers, sslProtocol, sslProvider, useNettyCompression| Constructor and Description |
|---|
NettyHttpServerImpl(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.
|
Class<?> |
getType() |
void |
onReceive(io.netty.channel.ChannelHandlerContext ctx,
INettyTuple<Map<String,Object>> in)
Called when a
NettySocketServer has received data. |
void |
run()
Effectively runs the server.
|
NettyHttpServerImpl |
setCallback(INettyReaderCallback<Map<String,Object>> handler) |
String |
toString() |
isStopped, start, stopgetFileFromString, getSslProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonActive, onInactive, onThrowableisStopped, stoppublic NettyHttpServerImpl(org.thales.punch.settings.api.ISettingsMap settings,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
settings - the settingsmetricsContext - the metric contextpublic NettyHttpServerImpl setCallback(INettyReaderCallback<Map<String,Object>> handler)
setCallback in interface NettySocketServer<Map<String,Object>>handler - your data callbackpublic void run()
NettySocketServerNettySocketServer.stop() is made.public void onReceive(io.netty.channel.ChannelHandlerContext ctx,
INettyTuple<Map<String,Object>> in)
INettyReaderCallbackNettySocketServer has received data.onReceive in interface INettyReaderCallback<Map<String,Object>>ctx - the receiving channel context .in - the received data.public void addListeningAddress(org.thales.punch.settings.api.ISettingsMap address)
NettySocketServeraddListeningAddress in interface NettySocketServer<Map<String,Object>>address - the host port address.Copyright © 2023. All rights reserved.