|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PollableRunnable
A simple extension of the Runnable
class which adds the ability for a runnable
to be monitored much like a progress meter. In fact, the design of the methods is borrowed from
the JProgressBar class.
Method Summary | |
---|---|
void |
cancel()
A method to cancel execution of the task. |
java.util.Date |
getEndDate()
Returns the date the task ended. |
double |
getPercentComplete()
Returns the percent complete of the task as a double value between 0.0 and 100.0. |
java.util.Date |
getStartDate()
Returns the date the task was started. |
int |
getTaskMaximum()
Returns the maximum value of task progress (default is 100). |
int |
getTaskMinimum()
Returns the minimum value of task progress (default is 0). |
int |
getTaskValue()
Returns the current value of the task's progress. |
boolean |
isFinished()
A simple call back method which will be called when the task has completed. |
boolean |
isIndeterminate()
Returns true if we are unable to determine the progress being made, false othewise. |
boolean |
isRunning()
Returns true if the task is running, false otherwise. |
Methods inherited from interface java.lang.Runnable |
---|
run |
Method Detail |
---|
boolean isRunning()
int getTaskMinimum()
indeterminate
mode then this will return -1.
int getTaskMaximum()
indeterminate
mode then this will return -1.
int getTaskValue()
indeterminate
mode then this will return -1.
java.util.Date getStartDate()
java.util.Date getEndDate()
double getPercentComplete()
indeterminate
mode then this will return -1.
boolean isIndeterminate()
boolean isFinished()
void cancel()
UnsupportedOperationException
should be thrown.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |