|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the method through which Threads can be controlled.
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. |
Method Detail |
public void join(long milliSeconds) throws IllegalStateException, InterruptedException
milliSeconds
- the duration in milliseconds to wait until the thread has finished work
IllegalStateException
- if isValid() == false
InterruptedException
- if another thread has interrupted the current thread.
The interrupted status of the current thread is cleared when this exception
is thrown.public void interrupt() throws IllegalStateException, SecurityException
Thread.interrupt()
on thread being controlled.
IllegalStateException
- if isValid() == false
SecurityException
- if caller does not have permission to call interupt()public boolean isFinished()
public Throwable getThrowable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |