DATA
- The type of the datagram to be operated with.public interface LoopbackConnectionReceiver<DATA extends Serializable> extends ConnectionReceiver<DATA,LoopbackConnectionSender<DATA>>
LoopbackConnectionReceiver
is a DatagramReceiver
connected directly within
the same JVM with a LoopbackConnectionSender
; 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.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
Modifier and Type | Method and Description |
---|---|
void |
pushDatagram(DATA aDatagram)
Pushes a datagram into the
LoopbackConnectionReceiver . |
readDatagrams
readDatagram
hasDatagram
getConnectionStatus
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 © 2016. All rights reserved.