public class HttpServer extends Object implements org.thales.punch.netty.api.INettyReaderCallback<Map<String,Object>>, Runnable
| Constructor and Description |
|---|
HttpServer(org.thales.punch.settings.api.ISettingsMap address,
int queueSize,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
LinkedBlockingQueue<org.thales.punch.netty.api.INettyTuple<Map<String,Object>>> |
getQueue() |
Class<?> |
getType() |
void |
onReceive(io.netty.channel.ChannelHandlerContext ctx,
org.thales.punch.netty.api.INettyTuple<Map<String,Object>> data) |
void |
registerNextTupleCallback(org.thales.punch.libraries.storm.api.INextTupleCallback cb)
Register the callback to receive the data.
|
void |
run() |
public HttpServer(org.thales.punch.settings.api.ISettingsMap address,
int queueSize,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
address - the listening addressqueueSize - the size of the input queue, once reached the syslogserver will stop reading the incoming socketmetricsContext - the metrics contextpublic void onReceive(io.netty.channel.ChannelHandlerContext ctx,
org.thales.punch.netty.api.INettyTuple<Map<String,Object>> data)
public void close()
public LinkedBlockingQueue<org.thales.punch.netty.api.INettyTuple<Map<String,Object>>> getQueue()
public void registerNextTupleCallback(org.thales.punch.libraries.storm.api.INextTupleCallback cb)
cb - the callbackCopyright © 2023. All rights reserved.