|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CancelRunnable
An interface for use of threads that can be canceled. Implementations of
this interface should gurantee that a call to the cancel() method
ceases the thread execution. It is not necessarry, though, that
thread execution stops immediately with a call to this method it is merely
expected that this thread stops execution within maxTimeToCancel().
The thread the implemented object is running in can be retrieved with
getAsociatedThread(). This method will return null if no thread has
been started with this object.
| Method Summary | |
|---|---|
void |
cancel()
A call to this method stops the thread execution. |
Thread |
getAsociatedThread()
Returns the thread the implementing object is running in. |
long |
maxTimeToCancel()
Returns the maximum time it will take this runnable object to exits its thread. |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Method Detail |
|---|
void cancel()
long maxTimeToCancel()
Thread getAsociatedThread()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||