| java.lang.Object java.lang.Thread
Inner Class :public enum State | |
Inner Class :public static interface UncaughtExceptionHandler | |
Constructor Summary | |
public | Thread() | public | Thread(Runnable target) | public | Thread(Runnable target, String name) | public | Thread(String name) | public | Thread(ThreadGroup group, Runnable target) | public | Thread(ThreadGroup group, Runnable target, String name) | | Thread(ThreadGroup group, String name, long nativeAddr, long stackSize, int priority, boolean daemon) Creates a new thread object for the thread attached to VM. | public | Thread(ThreadGroup group, Runnable target, String name, long stackSize) | public | Thread(ThreadGroup group, String name) |
MAX_PRIORITY | final public static int MAX_PRIORITY(Code) | | |
MIN_PRIORITY | final public static int MIN_PRIORITY(Code) | | |
NORM_PRIORITY | final public static int NORM_PRIORITY(Code) | | |
isAlive | boolean isAlive(Code) | | Indicates if the thread is alive.
|
lock | Object lock(Code) | | Synchronization is done using internal lock.
|
started | boolean started(Code) | | Indicates if the thread was already started
|
systemThreadGroup | static ThreadGroup systemThreadGroup(Code) | | System thread group for keeping helper threads.
|
Thread | Thread(ThreadGroup group, String name, long nativeAddr, long stackSize, int priority, boolean daemon)(Code) | | Creates a new thread object for the thread attached to VM.
The first attached thread is the main thread.
Parameters: group - determines the thread group to place the thread in Parameters: name - thread's name Parameters: nativeAddr - address of the attached native thread Parameters: stackeSize - size of the thread's stack Parameters: priority - thread's priority Parameters: daemon - true if the thread is daemon, false otherwise |
activeCount | public static int activeCount()(Code) | | |
checkAccess | final public void checkAccess()(Code) | | |
countStackFrames | public int countStackFrames()(Code) | | |
destroy | public void destroy()(Code) | | |
detach | void detach(Throwable uncaughtException)(Code) | | Performs premortal actions. First it processes uncaught exception if any.
Second removes current thread from its thread group.
VM calls this method when current thread is detaching from VM.
Parameters: uncaughtException - uncaught exception or null |
dumpStack | public static void dumpStack()(Code) | | |
getDefaultUncaughtExceptionHandler | public static UncaughtExceptionHandler getDefaultUncaughtExceptionHandler()(Code) | | |
getId | public long getId()(Code) | | |
getPriority | final public int getPriority()(Code) | | |
getThreadLocal | Object getThreadLocal(ThreadLocal<Object> local)(Code) | | Returns the value associated with the ThreadLocal object
specified. If no value is associated, returns the value produced by
initialValue() method called for this object and
associates this value to ThreadLocal object.
This nethod is designed to provide ThreadLocal
functionality.
|
getUncaughtExceptionHandler | public UncaughtExceptionHandler getUncaughtExceptionHandler()(Code) | | |
holdsLock | public static boolean holdsLock(Object object)(Code) | | |
interrupt | public void interrupt()(Code) | | |
interrupted | public static boolean interrupted()(Code) | | |
isAlive | final public boolean isAlive()(Code) | | |
isDaemon | final public boolean isDaemon()(Code) | | |
isInterrupted | public boolean isInterrupted()(Code) | | |
removeLocalValue | void removeLocalValue(ThreadLocal<Object> local)(Code) | | Removes the association (if any) between the ThreadLocal object
given and this thread's value.
This nethod is designed to provide ThreadLocal
functionality.
|
resume | final public void resume()(Code) | | Note that this is unsnchronized - the assumption is that
hythread does the synchronization for us
|
setContextClassLoader | public void setContextClassLoader(ClassLoader classLoader)(Code) | | |
setDaemon | final public void setDaemon(boolean daemon)(Code) | | |
setDefaultUncaughtExceptionHandler | public static void setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler eh)(Code) | | |
setPriority | final public void setPriority(int priority)(Code) | | |
setThreadLocal | void setThreadLocal(ThreadLocal<Object> local, Object value)(Code) | | Associates the value specified to the ThreadLocal object
given.
This nethod is designed to provide ThreadLocal
functionality.
|
setUncaughtExceptionHandler | public void setUncaughtExceptionHandler(UncaughtExceptionHandler eh)(Code) | | |
start | public synchronized void start()(Code) | | |
stop | final public void stop()(Code) | | |
suspend | final public void suspend()(Code) | | Note that this is unsnchronized - the assumption is that
hythread does the synchronization for us
|
yield | public static void yield()(Code) | | |
|
|