NamedThreadFactory

class NamedThreadFactory : ThreadFactory

一个有名称的 ThreadFactory,用来实现做一些线程创建分析

Constructors

NamedThreadFactory
Link copied to clipboard
private fun NamedThreadFactory()
NamedThreadFactory
Link copied to clipboard
fun NamedThreadFactory(name: String?)

Types

Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
newThread
Link copied to clipboard
open override fun newThread(r: Runnable): Thread
toString
Link copied to clipboard
open fun toString(): String

Properties

group
Link copied to clipboard
private var group: ThreadGroup? = null
namePrefix
Link copied to clipboard
private var namePrefix: String? = null
threadNumber
Link copied to clipboard
private val threadNumber: AtomicInteger