public class LoadHandleImpl implements LoadHandle
| Constructor and Description |
|---|
LoadHandleImpl(kotlin.jvm.functions.Function0<kotlin.Unit> loadingEndCallback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCancelled() |
java.util.concurrent.atomic.AtomicReference<java.lang.Long> |
getMaximum() |
java.util.concurrent.atomic.AtomicReference<java.lang.Long> |
getMinimum() |
java.util.Collection<tech.harmonysoft.oss.leonardo.model.DataPoint> |
getPoints() |
void |
onLoadingEnd()
The API is async, hence, there is a possible case that actual loading is performed
in a background thread (e.g. using a library solution). Also it's possible that the data is loaded
in batches, hence, we need explicitly signal about data loading iteration end.
|
void |
onMaximumValue(long value) |
void |
onMinimumValue(long value) |
void |
onPointLoaded(long x,
long y) |
void |
onPointsLoaded(java.lang.Iterable<tech.harmonysoft.oss.leonardo.model.DataPoint> points) |
getCancelled, onLoadingEnd, onMaximumValue, onMinimumValue, onPointLoaded, onPointsLoadedpublic LoadHandleImpl(@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> loadingEndCallback)
@NotNull public java.util.Collection<tech.harmonysoft.oss.leonardo.model.DataPoint> getPoints()
@NotNull public java.util.concurrent.atomic.AtomicReference<java.lang.Long> getMinimum()
@NotNull public java.util.concurrent.atomic.AtomicReference<java.lang.Long> getMaximum()
public boolean getCancelled()
public void onMinimumValue(long value)
public void onMaximumValue(long value)
public void onPointLoaded(long x,
long y)
public void onPointsLoaded(@NotNull
java.lang.Iterable<tech.harmonysoft.oss.leonardo.model.DataPoint> points)
public void onLoadingEnd()
The API is async, hence, there is a possible case that actual loading is performed in a background thread (e.g. using a library solution). Also it's possible that the data is loaded in batches, hence, we need explicitly signal about data loading iteration end.
This method serves that purpose