Class PrefixedDefaultThreadFactory
java.lang.Object
com.kingsrook.qqq.backend.core.utils.PrefixedDefaultThreadFactory
- All Implemented Interfaces:
ThreadFactory
ThreadFactory implementation that puts a common prefix on all threads.
Makes it so that, instead of having 100s of pool-x-thread-y names that are
hard to tell apart, they can have a prefix: MyService-pool-x-thread-y, vs
YourThing-pool-x-thread-y.
You can put '-' at the end of your threadNamePrefix (constructor arg) or
you can omit it, either way, we'll make it look like shown above.
-
Constructor Summary
ConstructorsConstructorDescriptionPrefixedDefaultThreadFactory
(Class<?> callerClass) ConstructorPrefixedDefaultThreadFactory
(Object caller) ConstructorPrefixedDefaultThreadFactory
(String threadNamePrefix) Constructor -
Method Summary
-
Constructor Details
-
PrefixedDefaultThreadFactory
Constructor -
PrefixedDefaultThreadFactory
Constructor -
PrefixedDefaultThreadFactory
Constructor
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-