| ||||
Copyright 1999 Sams Publishing |
|
Deprecated Methods |
The methods in this section have been deprecated and should only be used if absolutely necessary. Alternatives for stop() , suspend() , and resume() are presented in Chapter 5 . |
countStackFrames() |
public native int countStackFrames() |
Deprecated! Counts the number of stack frames for a suspended thread. |
resume() |
public final void resume() throws SecurityException |
Deprecated! Allows this thread to resume execution after being suspended. Throws a SecurityException if the current thread is not permitted to access this thread. Related method: suspend() . See Chapter 5 for more information. |
stop() |
public final void stop() throws SecurityException |
Deprecated! Causes this thread to stop what it is doing and throw a ThreadDeath (subclass of Error ). Throws a SecurityException if the current thread is not permitted to modify this thread. Related methods: start() , suspend() , resume() . See Chapter 5 for more information. |
stop(Throwable) |
public final synchronized void stop(Throwable except) |
throws SecurityException |
Deprecated! Causes this thread to stop what it is doing and throw the Throwable object except . Throws a SecurityException if the current thread is not permitted to modify this thread. Related methods: stop() , start() , suspend() , resume() . See Chapter 5 for more information. |
suspend() |
public final void suspend() throws SecurityException |
Deprecated! Causes this thread to temporarily stop execution until the resume() method is invoked. Throws a SecurityException if the current thread is not permitted to modify this thread. Related methods: resume() , stop() . See Chapter 5 for more information. |
| |||
Toc |