public class NetFlowUdpTransport extends UdpTransport
Modifier and Type | Class and Description |
---|---|
static class |
NetFlowUdpTransport.Config |
static interface |
NetFlowUdpTransport.Factory |
CK_BIND_ADDRESS, CK_NUMBER_WORKER_THREADS, CK_PORT, CK_RECV_BUFFER_SIZE, eventLoopGroupFactory, localRegistry, socketAddress, throughputCounter, workerThreads
Constructor and Description |
---|
NetFlowUdpTransport(Configuration configuration,
EventLoopGroupFactory eventLoopGroupFactory,
NettyTransportConfiguration nettyTransportConfiguration,
ThroughputCounter throughputCounter,
LocalMetricRegistry localRegistry) |
Modifier and Type | Method and Description |
---|---|
protected LinkedHashMap<String,Callable<? extends io.netty.channel.ChannelHandler>> |
getChannelHandlers(MessageInput input)
Subclasses can override this to add additional
channel handlers to the
Netty ChannelPipeline to support additional features. |
getChildChannelHandlers, getLocalAddress, launch, stop
getAggregator, getChannelInitializer, getCustomChildChannelHandlers, getMetricSet, getRecvBufferSize, setMessageAggregator
@Inject public NetFlowUdpTransport(Configuration configuration, EventLoopGroupFactory eventLoopGroupFactory, NettyTransportConfiguration nettyTransportConfiguration, ThroughputCounter throughputCounter, LocalMetricRegistry localRegistry)
protected LinkedHashMap<String,Callable<? extends io.netty.channel.ChannelHandler>> getChannelHandlers(MessageInput input)
NettyTransport
channel handlers
to the
Netty ChannelPipeline
to support additional features.
Some common use cases are to add connection counters or traffic shapers.getChannelHandlers
in class UdpTransport
input
- The MessageInput
for which these channel handlers are being addedchannel handlers
to add to the Netty channel pipeline
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.