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