DATA
- The type of the datagram to be operated with.public interface LoopbackTransceiver<DATA extends Serializable> extends ConnectionTransceiver<DATA,LoopbackTransceiver<DATA>>
LoopbackTransceiver
is a DatagramTransceiver
connected
directly within the same JVM with another LoopbackTransceiver
; a
"loopback" connection is used for establishing the connection which cannot be
accessed outside the JVM or the running machine.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>>
org.refcodes.component.Flushable.FlushBuilder<B extends org.refcodes.component.Flushable.FlushBuilder<B>>
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>>
Modifier and Type | Method and Description |
---|---|
void |
pushDatagram(DATA aDatagram)
Pushes a datagram into the
LoopbackReceiver . |
isOpenable
flush, writeDatagrams
writeDatagram, writeDatagrams
readDatagrams, readDatagrams
readDatagram
hasDatagram
close, closeIn, closeQuietly, closeUnchecked
void pushDatagram(DATA aDatagram) throws org.refcodes.component.OpenException
LoopbackReceiver
. Them datagrams can
be retrieved via DatagramProvider.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
DatagramProvider.readDatagram()
method.org.refcodes.component.OpenException
- the open exceptionCopyright © 2017. All rights reserved.