Class NamedThreadFactory

java.lang.Object
se.datadosen.util.NamedThreadFactory
All Implemented Interfaces:
java.util.concurrent.ThreadFactory

public class NamedThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
For Executors framework. Like DefaultThreadFactory but with custom thread naming
  • Constructor Summary

    Constructors 
    Constructor Description
    NamedThreadFactory​(java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Thread newThread​(java.lang.Runnable r)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • newThread

      public java.lang.Thread newThread​(java.lang.Runnable r)
      Specified by:
      newThread in interface java.util.concurrent.ThreadFactory