|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.threads.UseThreadTag
org.apache.commons.jelly.tags.threads.JoinTag
A thread join waits until a thread or threadGroup is complete.
| Field Summary | |
private long |
timeout
how long to wait |
| Fields inherited from class org.apache.commons.jelly.tags.threads.UseThreadTag |
|
| Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
JoinTag()
|
|
| Method Summary | |
private void |
joinThread(java.lang.Thread thread)
Join a thread |
void |
setTimeout(long timeout)
How long should the join wait. |
protected void |
useThread(java.lang.Thread thread,
org.apache.commons.jelly.XMLOutput output)
Perform the thread join |
protected void |
useThreadGroup(java.util.List threadGroup,
org.apache.commons.jelly.XMLOutput output)
Join all of the threads in a thread group |
| Methods inherited from class org.apache.commons.jelly.tags.threads.UseThreadTag |
doTag, getThread, getThreadGroup, setSearchForParentThread, setThread, setThreadGroup |
| Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private long timeout
| Constructor Detail |
public JoinTag()
| Method Detail |
protected void useThread(java.lang.Thread thread,
org.apache.commons.jelly.XMLOutput output)
throws java.lang.InterruptedException
useThread in class UseThreadTagjava.lang.InterruptedException
protected void useThreadGroup(java.util.List threadGroup,
org.apache.commons.jelly.XMLOutput output)
throws java.lang.InterruptedException
useThreadGroup in class UseThreadTagjava.lang.InterruptedException
private void joinThread(java.lang.Thread thread)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void setTimeout(long timeout)
timeout - in millis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||