DATA
- The type of the datagram to be operated with.public interface LoopbackConnectionTransceiver<DATA extends Serializable> extends ConnectionTransceiver<DATA,LoopbackConnectionTransceiver<DATA>>
LoopbackConnectionTransceiver
is a DatagramTransceiver
connected directly
within the same JVM with another LoopbackConnectionTransceiver
; 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.ConnectionOpenable.ConnectionOpenAutomaton<CON>
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
org.refcodes.component.Closable.CloseAutomaton
Modifier and Type | Method and Description |
---|---|
void |
pushDatagram(DATA aDatagram)
Pushes a datagram into the
LoopbackConnectionReceiver . |
isOpenable
writeDatagrams, writeDatagrams
readDatagrams
writeDatagram
readDatagram
hasDatagram
void pushDatagram(DATA aDatagram) throws org.refcodes.component.OpenException
LoopbackConnectionReceiver
. Them datagrams can
be retrieved via DatagramReceiver.readDatagram()
: use Receivable.hasDatagram()
to
test beforehand whether there is a datagram available.aDatagram
- The datagram to be pushed into the
LoopbackConnectionReceiver
; to be retrieved with the
DatagramReceiver.readDatagram()
method.org.refcodes.component.OpenException
Copyright © 2017. All rights reserved.