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.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
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.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
org.refcodes.component.Flushable.FlushBuilder<B extends org.refcodes.component.Flushable.FlushBuilder<B>>
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
Modifier and Type | Method and Description |
---|---|
void |
pushDatagram(short aDatagram)
Pushes a datagram into the
LoopbackByteReceiver . |
readDatagrams, readDatagrams
readDatagram
hasDatagram
flush, writeDatagrams
writeDatagram, writeDatagrams
close, closeIn, closeQuietly, closeUnchecked
getConnectionStatus
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 © 2017. All rights reserved.