DATA
- The type of the datagram to be operated with.public interface LoopbackReceiver<DATA extends Serializable> extends ConnectionReceiver<DATA,LoopbackSender<DATA>>
LoopbackReceiver
is a Receiver
connected directly within
the same JVM with a LoopbackSender
; 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.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
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON>
Modifier and Type | Method and Description |
---|---|
void |
pushDatagram(DATA aDatagram)
Pushes a datagram into the
LoopbackReceiver . |
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.