@InterfaceAudience.Private public abstract class HasThread extends Object implements Runnable
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
Thread |
getThread() |
void |
interrupt() |
boolean |
isAlive() |
boolean |
isInterrupted() |
void |
join() |
void |
join(long millis) |
void |
join(long millis,
int nanos) |
abstract void |
run() |
void |
setDaemon(boolean on) |
void |
setName(String name) |
void |
setPriority(int newPriority) |
void |
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh) |
void |
start() |
public void interrupt()
public final boolean isAlive()
public boolean isInterrupted()
public final void setDaemon(boolean on)
public final void setPriority(int newPriority)
public void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)
public void start()
public final void join() throws InterruptedException
InterruptedExceptionpublic final void join(long millis, int nanos) throws InterruptedException
InterruptedExceptionpublic final void join(long millis) throws InterruptedException
InterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.