Modifier and Type | Field and Description |
---|---|
TThreadInterruptHandler |
interruptHandler |
Constructor and Description |
---|
TThread() |
TThread(String name) |
TThread(TRunnable target) |
TThread(TRunnable target,
String name) |
Modifier and Type | Method and Description |
---|---|
static int |
activeCount() |
static TThread |
currentThread() |
TClassLoader |
getContextClassLoader() |
long |
getId() |
String |
getName() |
int |
getPriority() |
TStackTraceElement[] |
getStackTrace() |
static boolean |
holdsLock(TObject obj) |
void |
interrupt() |
static boolean |
interrupted() |
boolean |
isAlive() |
boolean |
isDaemon() |
boolean |
isInterrupted() |
void |
join() |
void |
join(long millis) |
void |
join(long millis,
int nanos) |
void |
run() |
void |
setDaemon(boolean daemon) |
void |
setPriority(int newPriority) |
static void |
sleep(long millis) |
void |
start() |
static void |
yield() |
public TThreadInterruptHandler interruptHandler
public TThread()
public TThread(String name)
public TThread(TRunnable target)
public void start()
public static TThread currentThread()
public String getName()
public final boolean isDaemon()
public final void setDaemon(boolean daemon)
public final void join(long millis, int nanos) throws InterruptedException
InterruptedException
public final void join(long millis) throws InterruptedException
InterruptedException
public final void join() throws InterruptedException
InterruptedException
public static void yield()
public void interrupt()
public static boolean interrupted()
public boolean isInterrupted()
public boolean isAlive()
public static int activeCount()
public long getId()
public static boolean holdsLock(TObject obj)
public static void sleep(long millis) throws TInterruptedException
TInterruptedException
public final void setPriority(int newPriority)
public final int getPriority()
public TStackTraceElement[] getStackTrace()
public TClassLoader getContextClassLoader()
Copyright © 2019. All rights reserved.