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
, 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
LoopbackShortTransceiverImpl
public interface LoopbackShortTransceiver extends ConnectionShortTransceiver<LoopbackShortTransceiver>
LoopbackShortTransceiver
is a DatagramTransceiver
connected
directly within the same JVM with another LoopbackShortTransceiver
; a
"loopback" connection is used for establishing the connection which cannot be
accessed outside the JVM or the running machine.org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends Object,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
Modifier and Type | Method | Description |
---|---|---|
void |
pushDatagram(short aDatagram) |
Pushes a datagram into the
LoopbackByteReceiver . |
close, closeIn, closeQuietly, closeUnchecked
isOpenable
getConnectionStatus, isConnectionOpened
hasDatagram
writeDatagram, writeDatagrams
readDatagram
readDatagrams, readDatagrams
flush, writeDatagrams
void pushDatagram(short aDatagram) throws org.refcodes.component.OpenException
LoopbackByteReceiver
. Them datagrams
can be retrieved via ShortDatagramProvider.readDatagram()
: use Receivable.hasDatagram()
to test beforehand whether there is a datagram available.aDatagram
- The datagram to be pushed into the
LoopbackReceiver
; to be retrieved with the
ShortDatagramProvider.readDatagram()
method.org.refcodes.component.OpenException
- the open exceptionCopyright © 2018. All rights reserved.