DATA
- The type of the datagram to be operated with.public interface LoopbackTransceiver<DATA extends Serializable> extends ConnectionTransceiver<DATA,LoopbackTransceiver<DATA>>
LoopbackTransceiver
is a Transceiver
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.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.mixins.OpenedAccessor.OpenedMutator, org.refcodes.component.mixins.OpenedAccessor.OpenedProperty
org.refcodes.component.mixins.Closable.CloseAutomaton
org.refcodes.component.mixins.ClosedAccessor.ClosedMutator, org.refcodes.component.mixins.ClosedAccessor.ClosedProperty
org.refcodes.component.mixins.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.mixins.ConnectionStatusAccessor.ConnectionStatusProperty
Modifier and Type | Method and Description |
---|---|
void |
pushDatagram(DATA aDatagram)
Pushes a datagram into the
LoopbackReceiver . |
writeDatagram
hasDatagram, readDatagram
getConnectionStatus
void pushDatagram(DATA aDatagram) throws org.refcodes.component.traps.OpenException
LoopbackReceiver
. Them datagrams can
be retrieved via Receiver.readDatagram()
: use Receiver.hasDatagram()
to
test beforehand whether there is a datagram available.aDatagram
- The datagram to be pushed into the
LoopbackReceiver
; to be retrieved with the
Receiver.readDatagram()
method.org.refcodes.component.traps.OpenException
Copyright © 2015. All rights reserved.