DATA
- The type of the datagram block (array) to be operated with. Do
not provide an array type as the methods use to generic type for
defining an array argument.public interface BlockReceiver<DATA extends Serializable> extends BlockProvider<DATA>, Receivable
BlockReceiver
is used to receive datagram blocks (arrays) in a
unified way. The BlockProvider.readDatagrams()
method provides the next available
datagram block from the counterpart BlockSender
or
DatagramSender
; in case there is none available, then this method
halts until one is available or the BlockReceiver
is being shut down
or the underlying connection is closed. The Receivable.hasDatagram()
method
returns true in case a next datagram(s) can be fetched via the
BlockProvider.readDatagrams()
method from the BlockReceiver
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>>
readDatagrams, readDatagrams
hasDatagram
close, closeIn, closeQuietly, closeUnchecked
Copyright © 2017. All rights reserved.