@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
InterruptedException
public final void join(long millis, int nanos) throws InterruptedException
InterruptedException
public final void join(long millis) throws InterruptedException
InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.