Class ThreadFactoryBuilder

java.lang.Object
org.openhab.core.common.ThreadFactoryBuilder

@NonNullByDefault public class ThreadFactoryBuilder extends Object
A builder for ThreadFactory instances. This builder is intended to be used for creating thread factories to be used, e.g., when creating Executors via the Executors utility methods.

The built ThreadFactory uses a wrapped ThreadFactory to create threads (defaulting to Executors.defaultThreadFactory(), and then overwrites thread properties as indicated in the build process.

Author:
Henning Sudbrock - Initial contribution