T - type of elementspublic interface AsynchCollection<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
AsynchCollection.Aggregator<T>
Aggregates several AsynchCollection into a single one:
each time new elements come, the newElements method is called into the main collection,
then the done method is called on the main collection only after the done method
has been called nbSubCollection times.
|
static class |
AsynchCollection.Keep<T>
Implementation that keeps the elements in a list.
|
static class |
AsynchCollection.Listen<T>
Simple implementation with a listener on both operations: newElements and done.
|
static interface |
AsynchCollection.OneByOne<T>
AsynchCollection but where elements are expected to come only one by one instead of by bunch.
|
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Called when no more elements will come.
|
boolean |
isDone()
Return true if the method done has been called already.
|
void |
newElements(Collection<T> elements)
Called when new elements are ready.
|
void newElements(Collection<T> elements)
void done()
boolean isDone()
Copyright © 2017. All rights reserved.