public abstract class AbstractThreadFactoryBuilder<T extends AbstractThreadFactoryBuilder<T>> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractThreadFactoryBuilder() |
public T withDefaultNameFormat()
public T withThreadGroup(ThreadGroup threadGroup)
public T withContextClassLoader(ClassLoader contextClassLoader)
public T withPriviledgedAccess(boolean isPriviledged)
public T withDaemonFlag(boolean daemon)
public T withDefaultDaemonFlag()
public T withPriority(int priority)
public T withDefaultPriority()
public T withUncaughtExceptionHandler(Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
public ThreadFactory build()
protected abstract Thread createThread(ThreadGroup threadGroup, Runnable runnable, String name)
protected ThreadFactory makeDefault(int poolCounter, String nameFormat, ThreadGroup threadGroup)
protected ThreadFactory makePriviledged(ThreadFactory origin, boolean isPriviledged, ClassLoader contextClassLoader)
protected ThreadFactory makeContextual(ThreadFactory origin, ClassLoader contextClassLoader, Function<? super Runnable,? extends Runnable> wrapper)
protected ThreadFactory makeConfigured(ThreadFactory origin, Boolean isDaemon, Integer priority, Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
Copyright © 2021. All rights reserved.