DATA
- the generic typepublic interface Receiver<DATA extends Serializable> extends Provider<DATA>, DatagramReceiver<DATA>, BlockReceiver<DATA>
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>>
Modifier and Type | Method and Description |
---|---|
default DATA[] |
readDatagrams()
Read datagrams.
|
default DATA[] |
readDatagrams(int aBlockSize)
Read datagrams.
|
readDatagram
hasDatagram
close, closeIn, closeQuietly, closeUnchecked
default DATA[] readDatagrams() throws org.refcodes.component.OpenException, InterruptedException
readDatagrams
in interface BlockProvider<DATA extends Serializable>
readDatagrams
in interface Provider<DATA extends Serializable>
org.refcodes.component.OpenException
- the open exceptionInterruptedException
- the interrupted exceptiondefault DATA[] readDatagrams(int aBlockSize) throws org.refcodes.component.OpenException, InterruptedException
readDatagrams
in interface BlockProvider<DATA extends Serializable>
readDatagrams
in interface Provider<DATA extends Serializable>
aBlockSize
- the a block sizeorg.refcodes.component.OpenException
- the open exceptionInterruptedException
- the interrupted exceptionCopyright © 2017. All rights reserved.