|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--org.exolab.jmscts.core.ThreadedAction
|
+--org.exolab.jmscts.core.DelayedAction
Helper class to run an action in a separate thread after a delay, and catch any exception that the action generates.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
DelayedAction(long sleep)
Construct a new DelayedAction |
|
DelayedAction(long sleep,
CompletionListener listener)
Construct a new DelayedAction, with a listener to notify
on completion |
|
| Method Summary | |
void |
run()
Run the action. |
| Methods inherited from class org.exolab.jmscts.core.ThreadedAction |
getElapsedTime, getException, runProtected, setException, waitForCompletion, waitForCompletion |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DelayedAction(long sleep)
DelayedActionsleep - the time to wait, in milliseconds, before invoking the
action
public DelayedAction(long sleep,
CompletionListener listener)
DelayedAction, with a listener to notify
on completionsleep - the time to wait, in milliseconds, before invoking the
actionlistener - the listener to notify on completion| Method Detail |
public void run()
ThreadedAction.runProtected().CompletionListener was supplied, it will be notified
on completion of the action.run in class ThreadedAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||