@OpenApiAll
public interface ProgressStatus
Modifier and Type | Method and Description |
---|---|
long |
getCurrent()
Get current progress value.
|
java.lang.String |
getDescription()
Get progress description.
|
long |
getMax()
Get progress maximum value.
|
long |
getMin()
Get progress minimum value.
|
int |
getPercentage()
Get completed percentage.
|
void |
increase()
Increment progress current value.
|
void |
init(java.lang.String description,
long max)
Initialize progress.
|
void |
init(java.lang.String description,
long min,
long max)
Initialize progress.
|
void |
init(java.lang.String description,
long min,
long max,
long current)
Initialize progress.
|
boolean |
isCancel() |
boolean |
isCompleted()
Checks if progress status completed.
|
boolean |
isIndeterminate()
Checks if progres status is indeterminate,
|
boolean |
isLocked()
Check if progress status is locked.
|
void |
reset()
Reset progress status.
|
void |
setCancel(boolean cancel)
Call this when want current operation be canceled.
|
void |
setCurrent(long current)
Set progress current value.
|
void |
setDescription(java.lang.String description)
Set progress description.
|
void |
setIndeterminate(boolean indeterminate)
Set progress status as indeterminate.
|
void |
setLocked(boolean lock)
Lock the progress status.
|
void |
setMax(long max)
Set progress maximum value.
|
void |
setMin(long min)
Set progress minimum value.
|
void setMin(long min)
min
- void setMax(long max)
max
- void setCurrent(long current)
current
- void setDescription(java.lang.String description)
description
- int getPercentage()
long getMin()
long getMax()
long getCurrent()
java.lang.String getDescription()
void reset()
void increase()
void init(java.lang.String description, long min, long max, long current)
description
- progress description.min
- minimum value.max
- maximum value.current
- current value.void init(java.lang.String description, long min, long max)
description
- progress description.min
- minimum value.max
- maximum value.void init(java.lang.String description, long max)
description
- progress description.max
- maximum value.boolean isCompleted()
void setIndeterminate(boolean indeterminate)
indeterminate
- boolean isIndeterminate()
void setLocked(boolean lock)
lock
- boolean isLocked()
void setCancel(boolean cancel)
cancel
- new cancel value.boolean isCancel()