D
- Type of data provided by this stream.public interface DataStream<D>
Modifier and Type | Method and Description |
---|---|
void |
close()
Signals the stream to close, i.e., to stop any data processing and free resources.
|
List<D> |
getNext(int count)
Returns an incremental result set of data objects based on the settings provided when starting the stream.
|
int |
getTotal()
Returns the total number of entries that are available by this stream.
|
boolean |
hasNext()
Returns
true , if the stream holds further entries in readiness. |
@NotNull List<D> getNext(int count)
count
unique entries.count
- The requested number of entries.List
of data entries.boolean hasNext()
true
, if the stream holds further entries in readiness. If there are no further entries to be returned, this returns false
.true
if the stream still has more entries to deliver, false
otherwise.int getTotal()
-1
.void close()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210