public class SFlowUdpParser extends Object implements UdpParser, Dispatchable
Constructor and Description |
---|
SFlowUdpParser(String name,
AsyncDispatcher<TelemetryMessage> dispatcher,
DnsResolver dnsResolver) |
Modifier and Type | Method and Description |
---|---|
boolean |
getDnsLookupsEnabled() |
String |
getName() |
int |
getThreads() |
boolean |
handles(io.netty.buffer.ByteBuf buffer)
Returns true if the implementor can handle the incoming data, otherwise false.
|
CompletableFuture<?> |
parse(io.netty.buffer.ByteBuf buffer,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress) |
void |
setDnsLookupsEnabled(boolean dnsLookupsEnabled) |
void |
setThreads(int threads) |
void |
start(ScheduledExecutorService executorService) |
void |
stop() |
public SFlowUdpParser(String name, AsyncDispatcher<TelemetryMessage> dispatcher, DnsResolver dnsResolver)
public boolean handles(io.netty.buffer.ByteBuf buffer)
Dispatchable
handles
in interface Dispatchable
buffer
- Representing the incoming datapublic CompletableFuture<?> parse(io.netty.buffer.ByteBuf buffer, InetSocketAddress remoteAddress, InetSocketAddress localAddress) throws Exception
public boolean getDnsLookupsEnabled()
public void setDnsLookupsEnabled(boolean dnsLookupsEnabled)
public void start(ScheduledExecutorService executorService)
public int getThreads()
public void setThreads(int threads)
Copyright © 2021. All rights reserved.