|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.excalibur.thread.impl.WrappedThreadControl
Constructor Summary | |
WrappedThreadControl(ThreadControl control)
|
Method Summary | |
Throwable |
getThrowable()
Retrieve throwable that caused thread to cease execution. |
void |
interrupt()
Call Thread.interrupt() on thread being controlled. |
boolean |
isFinished()
Determine if thread has finished execution |
void |
join(long milliSeconds)
Wait for specified time for thread to complete it's work. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WrappedThreadControl(ThreadControl control)
Method Detail |
public void join(long milliSeconds) throws IllegalStateException, InterruptedException
ThreadControl
join
in interface ThreadControl
milliSeconds
- the duration in milliseconds to wait until the thread has finished work
InterruptedException
- if another thread has interrupted the current thread.
The interrupted status of the current thread is cleared when this exception
is thrown.
IllegalStateException
- if isValid() == falsepublic void interrupt() throws IllegalStateException, SecurityException
ThreadControl
Thread.interrupt()
on thread being controlled.
interrupt
in interface ThreadControl
IllegalStateException
- if isValid() == false
SecurityException
- if caller does not have permission to call interupt()public boolean isFinished()
ThreadControl
isFinished
in interface ThreadControl
public Throwable getThrowable()
ThreadControl
getThrowable
in interface ThreadControl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |