DATA
- The type of the datagram to be operated with. In case you wish
to use array types, you might better use the BlockReceiver
type.public interface DatagramReceiver<DATA extends Serializable> extends DatagramProvider<DATA>, Receivable
DatagramReceiver
is used to receive datagrams in a unified way.
The DatagramProvider.readDatagram()
method provides the next available datagram from
the counterpart DatagramSender
; in case there is none available, then
this method halts until one is available or the DatagramReceiver
is
being shut down or the underlying connection is closed. The
Receivable.hasDatagram()
method returns true in case a next datagram can be
fetched via the DatagramProvider.readDatagram()
method from the
DatagramReceiver
counterpart.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>>
readDatagram
hasDatagram
close, closeIn, closeQuietly, closeUnchecked
Copyright © 2018. All rights reserved.