public class WaitPageStatus extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<String> |
currentAction |
protected Queue<String> |
logs |
| Constructor and Description |
|---|
WaitPageStatus() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLog(String message) |
void |
addLog(String messageFormat,
Object... args) |
List<String> |
dequeueLog() |
String |
getCurrentAction() |
String |
getJSON() |
int |
getLogDequeueCount() |
int |
getProgress() |
boolean |
isFinished() |
void |
setCurrentAction(String currentAction) |
void |
setFinished(boolean finished) |
void |
setProgress(int progress) |
WaitPageStatus |
subtask(String subtaskPrefix,
float percent) |
protected AtomicReference<String> currentAction
public String getCurrentAction()
public void setCurrentAction(String currentAction)
public boolean isFinished()
public void setFinished(boolean finished)
public int getLogDequeueCount()
public int getProgress()
public void setProgress(int progress)
public void addLog(String message)
public WaitPageStatus subtask(String subtaskPrefix, float percent)
public String getJSON() throws org.json.JSONException
org.json.JSONExceptionCopyright © 2019. All rights reserved.