Class PrefixedDefaultThreadFactory

java.lang.Object
com.kingsrook.qqq.backend.core.utils.PrefixedDefaultThreadFactory
All Implemented Interfaces:
ThreadFactory

public class PrefixedDefaultThreadFactory extends Object implements 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 Details

    • PrefixedDefaultThreadFactory

      public PrefixedDefaultThreadFactory(String threadNamePrefix)
      Constructor
    • PrefixedDefaultThreadFactory

      public PrefixedDefaultThreadFactory(Class<?> callerClass)
      Constructor
    • PrefixedDefaultThreadFactory

      public PrefixedDefaultThreadFactory(Object caller)
      Constructor
  • Method Details