@Beta @PublicAPI public interface ProgressObservable
Modifier and Type | Method and Description |
---|---|
void |
addDoneListener(Consumer<ProgressObservable> listener) |
void |
cancel()
Sets the cancelled state.
|
long |
getAccumulatedWork() |
Optional<Long> |
getTotalWork() |
Optional<String> |
getWorkUnit() |
boolean |
isDone() |
long getAccumulatedWork()
boolean isDone()
void cancel()
void addDoneListener(Consumer<ProgressObservable> listener)