Class LogContextThreadFactory

  • All Implemented Interfaces:
    java.util.concurrent.ThreadFactory

    public final class LogContextThreadFactory
    extends com.github.akurilov.commons.concurrent.ContextAwareThreadFactory
    Created by kurila on 19.07.16.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.github.akurilov.commons.concurrent.ContextAwareThreadFactory

        com.github.akurilov.commons.concurrent.ContextAwareThreadFactory.ContextAwareThread
    • Field Summary

      • Fields inherited from class com.github.akurilov.commons.concurrent.ContextAwareThreadFactory

        daemonFlag, exceptionHandler, threadContext, threadNamePrefix, threadNumber
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Thread newThread​(java.lang.Runnable task)  
      • Methods inherited from class com.github.akurilov.commons.concurrent.ContextAwareThreadFactory

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LogContextThreadFactory

        public LogContextThreadFactory​(java.lang.String threadNamePrefix)
      • LogContextThreadFactory

        public LogContextThreadFactory​(java.lang.String threadNamePrefix,
                                       boolean daemonFlag)
    • Method Detail

      • newThread

        public final java.lang.Thread newThread​(java.lang.Runnable task)
        Specified by:
        newThread in interface java.util.concurrent.ThreadFactory
        Overrides:
        newThread in class com.github.akurilov.commons.concurrent.ContextAwareThreadFactory