class Thread extends Runnable
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Thread
- Runnable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Thread(group: ThreadGroup, target: Runnable, name: String)
- new Thread(target: Runnable, name: String)
- new Thread(group: ThreadGroup, name: String)
- new Thread(name: String)
- new Thread(group: ThreadGroup, target: Runnable)
- new Thread(target: Runnable)
- new Thread()
- new Thread(group: ThreadGroup, target: Runnable, name: String, stacksize: scala.Long)
- new Thread(group: ThreadGroup, task: Runnable, name: String, stackSize: scala.Long, inheritThreadLocals: scala.Boolean)
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def getName(): String
- final def getPriority(): Int
- def getStackTrace(): Array[StackTraceElement]
- def getState(): State
- final def getThreadGroup(): ThreadGroup
- def getUncaughtExceptionHandler(): UncaughtExceptionHandler
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def interrupt(): Unit
- final def isAlive(): scala.Boolean
- final def isDaemon(): scala.Boolean
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isInterrupted(): scala.Boolean
- final def isVirtual(): scala.Boolean
- final def join(duration: Duration): scala.Boolean
- Annotations
- @throws("if the current thread is interrupted while waiting") @throws("if this thread has not been started")
- final def join(ml: scala.Long, n: Int): Unit
- final def join(millis: scala.Long): Unit
- final def join(): Unit
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def run(): Unit
- final def setDaemon(on: scala.Boolean): Unit
- final def setName(name: String): Unit
- final def setPriority(priority: Int): Unit
- def setUncaughtExceptionHandler(eh: UncaughtExceptionHandler): Unit
- def start(): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def threadId(): scala.Long
- val tid: scala.Long
- Attributes
- protected
- def toString(): String
- Definition Classes
- Thread → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def checkAccess(): Unit
- Annotations
- @deprecated
- Deprecated
(Since version 17) Deprecated for removal
- def destroy(): Unit
- Annotations
- @deprecated
- Deprecated
(Since version 1.7) Deprecated for removal
- def getId(): scala.Long
- Annotations
- @deprecated
- Deprecated
(Since version JDK 19) This method is not final and may be overridden to return a value that is not the thread ID. Use threadId() instead.
- final def resume(): Unit
- Annotations
- @deprecated
- Deprecated
(Since version 1.7) Deprecated for removal
- final def stop(throwable: Throwable): Unit
- Annotations
- @deprecated
- Deprecated
(Since version 1.7) Deprecated for removal
- final def stop(): Unit
- Annotations
- @deprecated
- Deprecated
(Since version 1.7) Deprecated for removal
- final def suspend(): Unit
- Annotations
- @deprecated
- Deprecated
(Since version 1.7) Deprecated for removal