net.sf.uadetector.internal.util
Class DaemonThreadFactory

java.lang.Object
  extended by net.sf.uadetector.internal.util.DaemonThreadFactory
All Implemented Interfaces:
java.util.concurrent.ThreadFactory

public final class DaemonThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory

Factory to create daemon threads that runs as a background process and do not blocks an application shutdown


Constructor Summary
DaemonThreadFactory(java.lang.String threadName)
          Creates a new DaemonThreadFactory which creates itself threads with the specified name.
 
Method Summary
 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
 

Constructor Detail

DaemonThreadFactory

public DaemonThreadFactory(@Nonnull
                           java.lang.String threadName)
Creates a new DaemonThreadFactory which creates itself threads with the specified name.

Parameters:
threadName - name of a thread to be created
Method Detail

newThread

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


Copyright © 2011-2014. All Rights Reserved.