io.keen.client.scala.ClientThreadFactory.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keenclient-scala_2.11 Show documentation
Show all versions of keenclient-scala_2.11 Show documentation
Keen IO SDK/client library for Scala
The newest version!
package io.keen.client.scala
import java.util.concurrent.ThreadFactory
class ClientThreadFactory extends ThreadFactory {
/**
* Returns a new daemon thread.
*
* @param r Class to be executed by the thread.
* @return A new damon thread.
*/
def newThread(r: Runnable): Thread = {
val t: Thread = new Thread(r)
t.setDaemon(true)
t
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy