Class IoThreadFactory

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

    public final class IoThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    Default ThreadFactory to create IO Threads.
    • Constructor Summary

      Constructors 
      Constructor Description
      IoThreadFactory​(java.lang.String threadNamePrefix)
      Create a new instance.
      IoThreadFactory​(java.lang.String threadNamePrefix, boolean daemon)
      Create a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • IoThreadFactory

        public IoThreadFactory​(java.lang.String threadNamePrefix)
        Create a new instance.
        Parameters:
        threadNamePrefix - the name prefix used for the created Threads.
      • IoThreadFactory

        public IoThreadFactory​(java.lang.String threadNamePrefix,
                               boolean daemon)
        Create a new instance.
        Parameters:
        threadNamePrefix - the name prefix used for the created Threads.
        daemon - true if the created Thread should be a daemon thread.
    • Method Detail

      • newThread

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