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.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
LoopbackReceiver . |
writeDatagram
hasDatagram, readDatagram
isOpened
isClosable
isClosed
getConnectionStatus
isOpenable
open
void pushDatagram(DATA aDatagram) throws 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.OpenException
Copyright © 2015. All rights reserved.