org.apache.commons.jelly.tags.threads
Class JellyThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.commons.jelly.tags.threads.JellyThread
All Implemented Interfaces:
java.lang.Runnable

public class JellyThread
extends java.lang.Thread

Adds some functionality to the jdk thread class.

Author:
Jason Horman

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JellyThread()
           
 
Method Summary
 RunnableStatus getStatus()
          Get the status of this thread
 void run()
          Run the thread
 void setTarget(java.lang.Runnable target)
          Set the Runnable target that will be run
 void waitUntilDone(long howLong)
          Call this method from a different thread to wait until this thread is done.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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

JellyThread

public JellyThread()
Method Detail

setTarget

public void setTarget(java.lang.Runnable target)
Set the Runnable target that will be run


run

public void run()
Run the thread


waitUntilDone

public void waitUntilDone(long howLong)
                   throws TimeoutException
Call this method from a different thread to wait until this thread is done. This is used by the WaitForTag class.

Throws:
TimeoutException

getStatus

public RunnableStatus getStatus()
Get the status of this thread



Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.