public interface LoopbackByteReceiver extends ConnectionByteReceiver<LoopbackByteSender>
LoopbackByteReceiver
is a DatagramReceiver
connected
directly within the same JVM with a LoopbackByteSender
; 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.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
Modifier and Type | Method and Description |
---|---|
void |
pushDatagram(byte aDatagram)
Pushes a datagram into the
LoopbackByteReceiver . |
default void |
pushDatagrams(byte[] aDatagrams)
Pushes the datagrams into the
LoopbackByteReceiver . |
default void |
pushDatagrams(byte[] aDatagrams,
int aOffset,
int aLength)
Pushes the according number of datagrams beginning at the given offset
into the
LoopbackByteReceiver . |
readDatagrams, readDatagrams
readDatagram
hasDatagram
close, closeIn, closeQuietly, closeUnchecked
getConnectionStatus, isConnectionOpened
void pushDatagram(byte aDatagram) throws org.refcodes.component.OpenException
LoopbackByteReceiver
. Them datagrams
can be retrieved via ByteDatagramProvider.readDatagram()
: use Receivable.hasDatagram()
to test beforehand whether there is a datagram available.aDatagram
- The datagram to be pushed into the
LoopbackByteReceiver
; to be retrieved with the
ByteDatagramProvider.readDatagram()
method.org.refcodes.component.OpenException
- the open exceptiondefault void pushDatagrams(byte[] aDatagrams) throws org.refcodes.component.OpenException
LoopbackByteReceiver
. Them
datagrams can be retrieved via ByteDatagramProvider.readDatagram()
: use
Receivable.hasDatagram()
to test beforehand whether there is a datagram
available.aDatagrams
- The datagrams to be pushed into the
LoopbackByteReceiver
; to be retrieved with the
ByteDatagramProvider.readDatagram()
method.org.refcodes.component.OpenException
- the open exceptiondefault void pushDatagrams(byte[] aDatagrams, int aOffset, int aLength) throws org.refcodes.component.OpenException
LoopbackByteReceiver
. Them datagrams can be retrieved
via ByteDatagramProvider.readDatagram()
: use Receivable.hasDatagram()
to test
beforehand whether there is a datagram available.aDatagrams
- The datagrams to be pushed into the
LoopbackByteReceiver
; to be retrieved with the
ByteDatagramProvider.readDatagram()
method.aOffset
- The offset from which to begin pushing.aLength
- The number of elements to be pushed.org.refcodes.component.OpenException
- the open exceptionCopyright © 2018. All rights reserved.