Class TaskService.RestletThreadFactory

  • All Implemented Interfaces:
    java.util.concurrent.ThreadFactory
    Enclosing class:
    TaskService

    private static class TaskService.RestletThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    The default thread factory.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean daemon
      Indicates whether or not the thread is a daemon thread.
      (package private) java.util.concurrent.ThreadFactory factory  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Thread newThread​(java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

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

      • daemon

        private boolean daemon
        Indicates whether or not the thread is a daemon thread. True by default.
      • factory

        final java.util.concurrent.ThreadFactory factory
    • Constructor Detail

      • RestletThreadFactory

        public RestletThreadFactory​(boolean daemon)
    • Method Detail

      • newThread

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