public class NettyUdpClientImpl extends Object implements NettyUdpClient
| Modifier and Type | Field and Description |
|---|---|
protected org.thales.punch.libraries.metrics.api.IMetricContext |
metricsContext
our injected metrics context
|
| Constructor and Description |
|---|
NettyUdpClientImpl(org.thales.punch.settings.api.ISettingsMap settings,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext) |
NettyUdpClientImpl(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
NettyUdpClient |
write(byte[] output)
Write some line of data to the server.
|
NettyUdpClient |
write(String s)
Write some line of data to the server.
|
protected org.thales.punch.libraries.metrics.api.IMetricContext metricsContext
public NettyUdpClientImpl(String host, int port) throws UnknownHostException, IOException
UnknownHostExceptionIOExceptionpublic NettyUdpClientImpl(org.thales.punch.settings.api.ISettingsMap settings,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
throws UnknownHostException,
IOException
UnknownHostExceptionIOExceptionpublic NettyUdpClient write(String s)
NettyUdpClientwrite in interface NettyUdpClients - the data to sendpublic NettyUdpClient write(byte[] output)
NettyUdpClientwrite in interface NettyUdpClientoutput - the data to sendCopyright © 2023. All rights reserved.