DATA
- The type of the datagram to be operated with. In case you wish
to use array types, you might better use the BlockSender
type.@FunctionalInterface public interface DatagramConsumer<DATA extends Serializable>
DatagramConsumer
is used to send datagrams in a unified way.Modifier and Type | Method and Description |
---|---|
void |
writeDatagram(DATA aDatagram)
Writes (sends) a datagram to a listening
DatagramReceiver . |
void writeDatagram(DATA aDatagram) throws org.refcodes.component.OpenException
DatagramReceiver
.aDatagram
- The datagram to be pushed to the receiving
DatagramConsumer
.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2018. All rights reserved.