Package org.jastacry

Class LayerThreadFactory

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

    public class LayerThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    Thread factory for better thread naming.

    SPDX-License-Identifier: MIT

    Author:
    Kai Kretschmann
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Thread newThread​(java.lang.Runnable r)  
      void setNumber​(int iSuffix)
      Set name suffix for thread.
      • Methods inherited from class java.lang.Object

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

      • LayerThreadFactory

        public LayerThreadFactory()
    • Method Detail

      • newThread

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

        public final void setNumber​(int iSuffix)
        Set name suffix for thread.
        Parameters:
        iSuffix - Number as suffix.