public class DatagramChannelSender extends ChannelSender
| Modifier and Type | Field and Description |
|---|---|
private DatagramChannel |
channel |
host, lastUsed, logger, maxSendBufferSize, port, timeout| Constructor and Description |
|---|
DatagramChannelSender(String host,
int port,
int maxSendBufferSize,
ComponentLog logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying channel
|
boolean |
isConnected() |
void |
open()
Opens the connection to the destination.
|
protected void |
write(byte[] data)
Write the given buffer to the underlying channel.
|
getLastUsed, getTimeout, send, send, setTimeoutprivate DatagramChannel channel
public DatagramChannelSender(String host, int port, int maxSendBufferSize, ComponentLog logger)
public void open()
throws IOException
ChannelSenderopen in class ChannelSenderIOException - if an error occurred opening the connection.protected void write(byte[] data)
throws IOException
ChannelSenderwrite in class ChannelSenderIOExceptionpublic boolean isConnected()
isConnected in class ChannelSenderpublic void close()
ChannelSenderclose in class ChannelSenderCopyright © 2019 Apache NiFi Project. All rights reserved.