T - type of elementspublic static interface AsyncCollection.OneByOne<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AsyncCollection.OneByOne.Refreshable<T>
A refreshable collection is a collection that can be restarted, with new elements coming and replacing the previous ones.
|
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Called when no more element will come.
|
void |
error(Exception error)
Called when an error occured while retrieving elements.
|
void |
newElement(T element)
Called when a new element is ready.
|
Copyright © 2019. All rights reserved.