Package org.refcodes.io
Interface DatagramConsumer<DATA extends java.io.Serializable>
-
- Type Parameters:
DATA
- The type of the datagram to be operated with. In case you wish to use array types, you might better use theBlockSender
type.
- All Known Subinterfaces:
BidirectionalConnectionTransceiver<DATA,INPUT,OUTPUT>
,BidirectionalStreamConnectionTransceiver<DATA>
,ConnectionSender<DATA,CON>
,ConnectionTransceiver<DATA,CON>
,Consumer<DATA>
,DatagramSender<DATA>
,DatagramTransceiver<DATA>
,LoopbackSender<DATA>
,LoopbackTransceiver<DATA>
,OutputStreamConnectionSender<DATA>
,Sender<DATA>
,Transceiver<DATA>
- All Known Implementing Classes:
AbstractSender
,BidirectionalStreamConnectionTransceiverImpl
,BidirectionalStreamTransceiverImpl
,LoopbackSenderImpl
,LoopbackTransceiverImpl
,OutputStreamConnectionSenderImpl
,OutputStreamSenderImpl
,PrefetchBidirectionalStreamConnectionTransceiverImpl
,PrefetchBidirectionalStreamTransceiverImpl
,SenderDecorator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DatagramConsumer<DATA extends java.io.Serializable>
TheDatagramConsumer
is used to send datagrams in a unified way.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeDatagram(DATA aDatagram)
Writes (sends) a datagram to a listeningDatagramReceiver
.
-
-
-
Method Detail
-
writeDatagram
void writeDatagram(DATA aDatagram) throws org.refcodes.component.OpenException
Writes (sends) a datagram to a listeningDatagramReceiver
.- Parameters:
aDatagram
- The datagram to be pushed to the receivingDatagramConsumer
.- Throws:
org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
-