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.ConnectableComponent.ConnectableAutomaton
OpenedAccessor.OpenedMutator, OpenedAccessor.OpenedProperty
Closable.CloseAutomaton
ClosedAccessor.ClosedMutator, ClosedAccessor.ClosedProperty
ConnectionStatusAccessor.ConnectionStatusMutator, ConnectionStatusAccessor.ConnectionStatusProperty
ConnectionComponent.ConnectionAutomaton<CON>
ConnectionOpenable.ConnectionOpenAutomaton<CON>
Modifier and Type | Method and Description |
---|---|
void |
pushDatagram(DATA aDatagram)
Pushes a datagram into the
LoopbackConnectionReceiver . |
readDatagrams
readDatagram
hasDatagram
isOpened
isClosable
isClosed
getConnectionStatus
isOpenable
open
void pushDatagram(DATA aDatagram) throws 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.OpenException
Copyright © 2016. All rights reserved.