- All Known Subinterfaces:
Port<PM>,SegmentTransceiver,SegmentTransmitter,SerialTransceiver,SerialTransmitter
- All Known Implementing Classes:
AbstractPort,AbstractPortDecorator,CrossoverLoopbackPort,LoopbackPort
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The
SegmentSource is used to send Segment instances in a
unified way.-
Method Summary
Modifier and TypeMethodDescription<SEGMENT extends Segment>
voidtransmitSegment(SEGMENT aSegment) Transmits aSegment(and blocks this thread) till all it'sSequencedata (as ofTransmission.toSequence()) has been sent.
-
Method Details
-
transmitSegment
Transmits aSegment(and blocks this thread) till all it'sSequencedata (as ofTransmission.toSequence()) has been sent.- Type Parameters:
SEGMENT- TheSegmenttype describing theSegmentsubclass used.- Parameters:
aSegment- TheSegment's data to be sent.- Throws:
IOException- thrown in case of I/O issues (e.g. a timeout) while sending.
-