Module org.refcodes.io
Package org.refcodes.io
Interface DatagramsTransmitter<DATA extends Serializable>
-
- Type Parameters:
DATA
- The type of the datagram block (array) to be operated with. Do not provide an array type as the methods use to generic type for defining an array argument.
- All Superinterfaces:
org.refcodes.component.Closable
,org.refcodes.component.Closable.CloseAutomaton
,org.refcodes.component.ClosedAccessor
,org.refcodes.component.ConnectableComponent
,org.refcodes.component.ConnectableComponent.ConnectableAutomaton
,org.refcodes.component.ConnectionStatusAccessor
,DatagramSource<DATA>
,DatagramsSource<DATA>
,DatagramTransmitter<DATA>
,Flushable
,org.refcodes.component.Flushable
,org.refcodes.component.OpenedAccessor
,Transmittable
- All Known Subinterfaces:
BidirectionalConnectionTransceiver<DATA,INPUT,OUTPUT>
,BidirectionalStreamConnectionTransceiver<DATA>
,ConnectionDatagramsTransceiver<DATA,CON>
,ConnectionDatagramsTransmitter<DATA,CON>
,DatagramsTransceiver<DATA>
- All Known Implementing Classes:
AbstractDatagramsTransmitter
,BidirectionalStreamConnectionTransceiverImpl
,BidirectionalStreamTransceiver
,LoopbackDatagramsTransceiver
,LoopbackDatagramsTransmitter
,OutputStreamConnectionDatagramsTransmitter
,OutputStreamDatagramsTransmitter
,PrefetchBidirectionalStreamConnectionTransceiver
,PrefetchBidirectionalStreamTransceiver
,TransmitterDecorator
public interface DatagramsTransmitter<DATA extends Serializable> extends DatagramsSource<DATA>, DatagramTransmitter<DATA>
TheDatagramsTransmitter
is used to send datagram blocks (arrays) in a unified way.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.Closable
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ClosedAccessor
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectableComponent
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionStatusAccessor
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
transmit(DATA[] aDatagrams, int aOffset, int aLength)
Write datagrams.-
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
-
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
getConnectionStatus, isOpened
-
Methods inherited from interface org.refcodes.io.DatagramsSource
transmit, transmitAll
-
Methods inherited from interface org.refcodes.io.DatagramTransmitter
flush
-
-
-
-
Method Detail
-
transmit
default void transmit(DATA[] aDatagrams, int aOffset, int aLength) throws IOException
Write datagrams.- Specified by:
transmit
in interfaceDatagramsSource<DATA extends Serializable>
- Parameters:
aDatagrams
- the datagramaOffset
- the offsetaLength
- the length- Throws:
IOException
- the open exception
-
-