DATA
- the generic type@FunctionalInterface public interface Provider<DATA extends Serializable> extends DatagramProvider<DATA>, BlockProvider<DATA>
Modifier and Type | Method and Description |
---|---|
default DATA[] |
readDatagrams()
Caution: Reads till an
OpenException (or an
InterruptedException in case of blocking till more data is
available) occurs. |
default DATA[] |
readDatagrams(int aBlockSize)
Read datagrams.
|
readDatagram
default DATA[] readDatagrams() throws org.refcodes.component.OpenException, InterruptedException
OpenException
(or an
InterruptedException
in case of blocking till more data is
available) occurs.readDatagrams
in interface BlockProvider<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>
aBlockSize
- the a block sizeorg.refcodes.component.OpenException
- the open exceptionInterruptedException
- the interrupted exceptionCopyright © 2017. All rights reserved.