Package org.refcodes.io
Interface LoopbackByteTransceiver
-
- All Superinterfaces:
ByteBlockConsumer
,ByteBlockProvider
,ByteBlockReceiver
,ByteBlockSender
,ByteConsumer
,ByteDatagramConsumer
,ByteDatagramProvider
,ByteDatagramReceiver
,ByteDatagramSender
,ByteProvider
,ByteReceiver
,ByteSender
,ByteTransceiver
,org.refcodes.component.Closable
,org.refcodes.component.Closable.CloseAutomaton
,org.refcodes.component.ClosedAccessor
,org.refcodes.component.ConnectableComponent
,org.refcodes.component.ConnectableComponent.ConnectableAutomaton
,ConnectionByteReceiver<LoopbackByteTransceiver>
,ConnectionByteSender<LoopbackByteTransceiver>
,ConnectionByteTransceiver<LoopbackByteTransceiver>
,org.refcodes.component.ConnectionComponent<LoopbackByteTransceiver>
,org.refcodes.component.ConnectionComponent.ConnectionAutomaton<LoopbackByteTransceiver>
,org.refcodes.component.ConnectionOpenable<LoopbackByteTransceiver>
,org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<LoopbackByteTransceiver>
,org.refcodes.component.ConnectionStatusAccessor
,java.io.Flushable
,org.refcodes.component.Flushable
,org.refcodes.component.OpenedAccessor
,Receivable
,org.refcodes.mixin.Releaseable
,Sendable
- All Known Implementing Classes:
LoopbackByteTransceiverImpl
public interface LoopbackByteTransceiver extends ConnectionByteTransceiver<LoopbackByteTransceiver>
ALoopbackByteTransceiver
is aDatagramTransceiver
connected directly within the same JVM with anotherLoopbackByteTransceiver
; 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 void
pushDatagram(byte aDatagram)
Pushes a datagram into theLoopbackByteReceiver
.-
Methods inherited from interface org.refcodes.io.ByteConsumer
writeDatagram, writeDatagrams
-
Methods inherited from interface org.refcodes.io.ByteDatagramProvider
readDatagram
-
Methods inherited from interface org.refcodes.io.ByteReceiver
readDatagrams, readDatagrams
-
Methods inherited from interface org.refcodes.io.ByteSender
flush, writeDatagrams
-
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
-
-
-
-
Method Detail
-
pushDatagram
void pushDatagram(byte aDatagram) throws org.refcodes.component.OpenException
Pushes a datagram into theLoopbackByteReceiver
. Them datagrams can be retrieved viaByteDatagramProvider.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 theByteDatagramProvider.readDatagram()
method.- Throws:
org.refcodes.component.OpenException
- the open exception
-
-