Class ThreadUtils
java.lang.Object
io.confluent.security.authorizer.utils.ThreadUtils
Utilities for working with threads.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadFactorycreateThreadFactory(String pattern, boolean daemon) Create a new ThreadFactory.
-
Constructor Details
-
ThreadUtils
public ThreadUtils()
-
-
Method Details
-
createThreadFactory
Create a new ThreadFactory.- Parameters:
pattern- The pattern to use. If this contains %d, it will be replaced with a thread number. It should not contain more than one %d.daemon- True if we want daemon threads.- Returns:
- The new ThreadFactory.
-