DATA
- the generic typepublic interface Consumer<DATA extends Serializable> extends DatagramConsumer<DATA>, BlockConsumer<DATA>
Modifier and Type | Method and Description |
---|---|
default void |
writeDatagram(DATA aDatagram)
Writes (sends) a datagram to a listening
DatagramReceiver . |
default void |
writeDatagrams(DATA[] aDatagrams)
Writes (sends) a datagram block to a listening
DatagramReceiver
or BlockReceiver . |
writeDatagrams
default void writeDatagram(DATA aDatagram) throws org.refcodes.component.OpenException
DatagramConsumer
DatagramReceiver
.writeDatagram
in interface DatagramConsumer<DATA extends Serializable>
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.default void writeDatagrams(DATA[] aDatagrams) throws org.refcodes.component.OpenException
BlockConsumer
DatagramReceiver
or BlockReceiver
.writeDatagrams
in interface BlockConsumer<DATA extends Serializable>
aDatagrams
- The datagram to be pushed to the receiving
DatagramReceiver
or BlockReceiver
.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2017. All rights reserved.