CountingThreadFactory

open class CountingThreadFactory(prefix: String, isDaemon: Boolean = false, priority: Int = -1) : CommonsThreadFactoryAdapter

A thread factory which creates threads with the given prefix as its name. Each thread will end up with a name of $prefix-thread-$id, where id is an incrementing number for each created thread.

Constructors

Link copied to clipboard
constructor(prefix: String, isDaemon: Boolean = false, priority: Int = -1)

Functions

Link copied to clipboard
open override fun newThread(p0: Runnable): Thread