public abstract class AbstractUdpListener extends Object implements Listener
Modifier and Type | Field and Description |
---|---|
static long |
HOUSEKEEPING_INTERVAL |
Modifier | Constructor and Description |
---|---|
protected |
AbstractUdpListener(Protocol protocol) |
Modifier and Type | Method and Description |
---|---|
protected abstract io.netty.channel.ChannelHandler |
buildDecoder(UdpSessionManager sessionManager) |
String |
getHost() |
int |
getMaxPacketSize() |
String |
getName() |
int |
getPort() |
java.time.Duration |
getTemplateTimeout() |
void |
setDispatcher(AsyncDispatcher<TelemetryMessage> dispatcher) |
void |
setHost(String host) |
void |
setMaxPacketSize(int maxPacketSize) |
void |
setName(String name) |
void |
setPort(int port) |
void |
setTemplateTimeout(java.time.Duration templateTimeout) |
void |
start() |
void |
stop() |
public static final long HOUSEKEEPING_INTERVAL
protected AbstractUdpListener(Protocol protocol)
protected abstract io.netty.channel.ChannelHandler buildDecoder(UdpSessionManager sessionManager)
public void start() throws InterruptedException
start
in interface Listener
InterruptedException
public void stop() throws InterruptedException
stop
in interface Listener
InterruptedException
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public int getMaxPacketSize()
public void setMaxPacketSize(int maxPacketSize)
public java.time.Duration getTemplateTimeout()
public void setTemplateTimeout(java.time.Duration templateTimeout)
public void setDispatcher(AsyncDispatcher<TelemetryMessage> dispatcher)
setDispatcher
in interface Listener
Copyright © 2018. All rights reserved.