Package org.refcodes.io
Interface LoopbackShortTransceiver
-
- 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.ConnectionComponent<LoopbackShortTransceiver>,org.refcodes.component.ConnectionComponent.ConnectionAutomaton<LoopbackShortTransceiver>,org.refcodes.component.ConnectionOpenable<LoopbackShortTransceiver>,org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<LoopbackShortTransceiver>,ConnectionShortReceiver<LoopbackShortTransceiver>,ConnectionShortSender<LoopbackShortTransceiver>,ConnectionShortTransceiver<LoopbackShortTransceiver>,org.refcodes.component.ConnectionStatusAccessor,java.io.Flushable,org.refcodes.component.Flushable,org.refcodes.component.OpenedAccessor,Receivable,org.refcodes.mixin.Releaseable,Sendable,ShortBlockConsumer,ShortBlockProvider,ShortBlockReceiver,ShortBlockSender,ShortConsumer,ShortDatagramConsumer,ShortDatagramProvider,ShortDatagramReceiver,ShortDatagramSender,ShortProvider,ShortReceiver,ShortSender,ShortTransceiver
- All Known Implementing Classes:
LoopbackShortTransceiverImpl
public interface LoopbackShortTransceiver extends ConnectionShortTransceiver<LoopbackShortTransceiver>
ALoopbackShortTransceiveris aDatagramTransceiverconnected directly within the same JVM with anotherLoopbackShortTransceiver; a "loopback" connection is used for establishing the connection which cannot be accessed outside the JVM or the running machine.
-
-
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.ConnectionComponent
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends java.lang.Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends java.lang.Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenable
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends java.lang.Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends java.lang.Object,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
-
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 Abstract Methods Modifier and Type Method Description voidpushDatagram(short aDatagram)Pushes a datagram into theLoopbackByteReceiver.-
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
-
Methods inherited from interface org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton
isOpenable
-
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
getConnectionStatus, isConnectionOpened
-
Methods inherited from interface org.refcodes.io.Receivable
hasDatagram
-
Methods inherited from interface org.refcodes.io.ShortConsumer
writeDatagram, writeDatagrams
-
Methods inherited from interface org.refcodes.io.ShortDatagramProvider
readDatagram
-
Methods inherited from interface org.refcodes.io.ShortReceiver
readDatagrams, readDatagrams
-
Methods inherited from interface org.refcodes.io.ShortSender
flush, writeDatagrams
-
-
-
-
Method Detail
-
pushDatagram
void pushDatagram(short aDatagram) throws org.refcodes.component.OpenExceptionPushes a datagram into theLoopbackByteReceiver. Them datagrams can be retrieved viaShortDatagramProvider.readDatagram(): useReceivable.hasDatagram()to test beforehand whether there is a datagram available.- Parameters:
aDatagram- The datagram to be pushed into theLoopbackReceiver; to be retrieved with theShortDatagramProvider.readDatagram()method.- Throws:
org.refcodes.component.OpenException- the open exception
-
-