public class AsyncUpdatingValueSupplier<T> extends BasicUpdatingValueSupplier<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncUpdatingValueSupplier.InitializedCallableBase<T> |
initialValue, lastValue| Constructor and Description |
|---|
AsyncUpdatingValueSupplier(com.github.akurilov.coroutines.CoroutinesProcessor coroutinesProcessor,
T initialValue,
com.github.akurilov.commons.concurrent.InitCallable<T> updateAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
T |
get() |
int |
get(java.util.List<T> buffer,
int limit) |
long |
skip(long count)
Skip some items.
|
resetpublic AsyncUpdatingValueSupplier(com.github.akurilov.coroutines.CoroutinesProcessor coroutinesProcessor,
T initialValue,
com.github.akurilov.commons.concurrent.InitCallable<T> updateAction)
throws OmgDoesNotPerformException
OmgDoesNotPerformExceptionpublic final T get()
get in interface java.util.function.Supplier<T>get in class BasicUpdatingValueSupplier<T>public final int get(java.util.List<T> buffer, int limit)
get in interface BatchSupplier<T>get in class BasicUpdatingValueSupplier<T>public long skip(long count)
BatchSupplierskip in interface BatchSupplier<T>skip in class BasicUpdatingValueSupplier<T>count - count of items should be skipped from the input streampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class BasicUpdatingValueSupplier<T>java.io.IOException