T - type of elementspublic static class AsynchCollection.Aggregator<T> extends Object implements AsynchCollection<T>
AsynchCollection.Aggregator<T>, AsynchCollection.Keep<T>, AsynchCollection.Listen<T>, AsynchCollection.OneByOne<T>| Constructor and Description |
|---|
Aggregator(int nbSubCollection,
AsynchCollection<T> mainCollection)
Constructor.
|
| 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.
|
public Aggregator(int nbSubCollection,
AsynchCollection<T> mainCollection)
public void newElements(Collection<T> elements)
AsynchCollectionnewElements in interface AsynchCollection<T>public void done()
AsynchCollectiondone in interface AsynchCollection<T>public boolean isDone()
AsynchCollectionisDone in interface AsynchCollection<T>Copyright © 2017. All rights reserved.