Modifier and Type | Class and Description |
---|---|
static class |
Thread.State |
static interface |
Thread.UncaughtExceptionHandler |
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PRIORITY |
static int |
MIN_PRIORITY |
static int |
NORM_PRIORITY |
Constructor and Description |
---|
Thread() |
Thread(Runnable target) |
Thread(Runnable target,
String name) |
Thread(String name) |
Thread(ThreadGroup group,
Runnable target) |
Thread(ThreadGroup group,
Runnable target,
String name) |
Thread(ThreadGroup group,
Runnable target,
String name,
long stackSize) |
Thread(ThreadGroup group,
String name) |
public static final int MIN_PRIORITY
public static final int NORM_PRIORITY
public static final int MAX_PRIORITY
public Thread()
public Thread(Runnable target)
public Thread(String name)
public Thread(ThreadGroup group, String name)
public Thread(ThreadGroup group, Runnable target)
public Thread(ThreadGroup group, Runnable target, String name)
public Thread(ThreadGroup group, Runnable target, String name, long stackSize)
public static void setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler xh)
public static Thread.UncaughtExceptionHandler getDefaultUncaughtExceptionHandler()
public static int activeCount()
public void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler xh)
public Thread.UncaughtExceptionHandler getUncaughtExceptionHandler()
public void setContextClassLoader(ClassLoader cl)
public ClassLoader getContextClassLoader()
public void setDaemon(boolean isDaemon)
public boolean isDaemon()
public long getId()
public StackTraceElement[] getStackTrace()
public int getState0()
public Thread.State getState()
public void setName(String name)
public String getName()
public void setPriority(int priority)
public int getPriority()
public ThreadGroup getThreadGroup()
public void checkAccess()
public int countStackFrames()
public static Thread currentThread()
public void destroy()
public static void dumpStack()
public static int enumerate(Thread[] tarray)
public static boolean holdsLock(Object obj)
public void interrupt()
public static boolean interrupted()
public boolean isInterrupted()
public boolean isAlive()
public void join() throws InterruptedException
InterruptedException
public void join(long millis) throws InterruptedException
InterruptedException
public void join(long millis, int nanos) throws InterruptedException
InterruptedException
public static void sleep(long millis) throws InterruptedException
InterruptedException
public static void sleep(long millis, int nanos) throws InterruptedException
InterruptedException
public void start()
public void stop()
public void stop(Throwable obj)
public void suspend()
public void resume()
public static void yield()