public class BasicUpdatingValueSupplier<T> extends java.lang.Object implements BatchSupplier<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
initialValue |
protected T |
lastValue |
| Constructor and Description |
|---|
BasicUpdatingValueSupplier(T initialValue,
java.util.concurrent.Callable<T> updateAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
T |
get() |
int |
get(java.util.List<T> buffer,
int limit) |
void |
reset()
Reset this input making this readable from the beginning
|
long |
skip(long count)
Skip some items.
|
public int get(java.util.List<T> buffer, int limit)
get in interface BatchSupplier<T>public long skip(long count)
BatchSupplierskip in interface BatchSupplier<T>count - count of items should be skipped from the input streampublic void reset()
BatchSupplierreset in interface BatchSupplier<T>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException