public abstract class MonitorableProgressListener extends Object implements ProgressListener
| 构造器和说明 |
|---|
MonitorableProgressListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
finishOneTask()
End a subtask.
|
boolean |
isRunning()
Check whether the request task is running.
|
void |
reset()
Reset the listener.
|
void |
startOneTask()
Start a subtask.
|
boolean |
waitingFinish()
Wait until the request task is completely executed.
|
boolean |
waitingFinish(long timeout)
Wait until the request task is completely executed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprogressChangedpublic final boolean isRunning()
public final boolean waitingFinish()
throws InterruptedException
InterruptedException - This exception is thrown when the thread is in waiting, sleep, or occupied state before or during the activity and the thread is interrupted.public final boolean waitingFinish(long timeout)
throws InterruptedException
timeout - Timeout interval, in milliseconds. If the parameter value is smaller than or equal to 0, the waiting never times out.InterruptedException - This exception is thrown when the thread is in waiting, sleep, or occupied state before or during the activity and the thread is interrupted.public final void startOneTask()
waitingFinish(long), isRunning()public final void finishOneTask()
waitingFinish(long), isRunning()public final void reset()
Copyright © 2021. All rights reserved.