public interface CalculatedResultListener
Modifier and Type | Method and Description |
---|---|
boolean |
isCancelled()
It's recommended to poll this once in a while to avoid unnecessary computations.
|
void |
provideResponse(java.lang.Object value)
It is expected that number of provided responses is equal to number of requested intervals.
|
void |
setCompleted()
You are required to make this call when you either completed and provided
all calculations or aborted calculation.
|
boolean isCancelled()
setCompleted()
to acknowledge).void provideResponse(java.lang.Object value)
value
- representation of this pixel state (currently accepts Double
, OnlineCalculatable.Marker
, List<OnlineCalculatable.Marker
> or OnlineCalculatable.ValueBundle
)void setCompleted()