public interface ThreadControl
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
void join(long milliSeconds)
throws java.lang.IllegalStateException,
java.lang.InterruptedException
milliSeconds - the duration in milliseconds to wait until the thread has finished workjava.lang.IllegalStateException - if isValid() == falsejava.lang.InterruptedException - if another thread has interrupted the current thread.
The interrupted status of the current thread is cleared when this exception
is thrown.void interrupt()
throws java.lang.IllegalStateException,
java.lang.SecurityException
Thread.interrupt() on thread being controlled.java.lang.IllegalStateException - if isValid() == falsejava.lang.SecurityException - if caller does not have permission to call interupt()boolean isFinished()
java.lang.Throwable getThrowable()