Package org.htmlunit

Class WebClient.ThreadNamingFactory

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

    private static final class WebClient.ThreadNamingFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    Our simple impl of a ThreadFactory (decorator) to be able to name our threads.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.ThreadFactory baseFactory_  
      private static int ID_  
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadNamingFactory​(java.util.concurrent.ThreadFactory aBaseFactory)  
    • Method Summary

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

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

      • ID_

        private static int ID_
      • baseFactory_

        private final java.util.concurrent.ThreadFactory baseFactory_
    • Constructor Detail

      • ThreadNamingFactory

        ThreadNamingFactory​(java.util.concurrent.ThreadFactory aBaseFactory)
    • Method Detail

      • newThread

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