Pular para o conteúdo principal

Class: Thread

This page documents the methods and fields available in the Thread class.

Members

SignatureDescription
Thread()Creates a new instance of Thread.
Thread(Runnable)Creates a new instance of Thread.
Thread(Runnable, String)Creates a new instance of Thread.
Thread(String)Creates a new instance of Thread.
Thread(ThreadGroup, Runnable)Creates a new instance of Thread.
Thread(ThreadGroup, Runnable, String)Creates a new instance of Thread.
Thread(ThreadGroup, Runnable, String, long)Creates a new instance of Thread.
Thread(ThreadGroup, String)Creates a new instance of Thread.
dumpStack()Performs the dumpStack operation.
getContextClassLoader()Returns the current context class loader.
getId()Returns the current id.
getName()Returns the current name.
getPriority()Returns the current priority.
getStackTrace()Returns the current stack trace.
getState()Returns the current state.
getThreadGroup()Returns the current thread group.
getUncaughtExceptionHandler()Returns the current uncaught exception handler.
interrupt()Performs the interrupt operation.
isAlive()Returns whether alive is true.
isInterruptCalled()Returns whether interrupt called is true.
isInterrupted()Returns whether interrupted is true.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
run()Performs the run operation.
runOnEngine(Runnable)Performs the runOnEngine operation using the provided parameters (runnable).
runOnEngine(float, Runnable)Performs the runOnEngine operation using the provided parameters (delaySeconds, runnable).
runOnUIThread(Runnable)Performs the runOnUIThread operation using the provided parameters (runnable).
setContextClassLoader(ClassLoader)Sets or updates the context class loader.
setName(String)Sets or updates the name.
setPriority(int)Sets or updates the priority.
setUncaughtExceptionHandler(UncaughtExceptionHandler)Sets or updates the uncaught exception handler.
sleep(long)Performs the sleep operation using the provided parameters (milis).
sleep(long, int)Performs the sleep operation using the provided parameters (milis, nanos).
start()Performs the start operation.
toString()Returns the string representation.
uncaughtException(@NonNull java.lang.Thread, @NonNull Throwable)Performs the uncaughtException operation using the provided parameters (t, e).