fr.paris.lutece.portal.service.daemon
Class DaemonThreadFactory

java.lang.Object
  extended by fr.paris.lutece.portal.service.daemon.DaemonThreadFactory
All Implemented Interfaces:
ThreadFactory

public final class DaemonThreadFactory
extends Object
implements ThreadFactory

This class provides a method that creates new threads on demand to run daemon task


Constructor Summary
DaemonThreadFactory()
           
 
Method Summary
 Thread newThread(Runnable runnable)
          Constructs a new Thread with priority and daemon status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaemonThreadFactory

public DaemonThreadFactory()
Method Detail

newThread

public Thread newThread(Runnable runnable)
Constructs a new Thread with priority and daemon status

Specified by:
newThread in interface ThreadFactory
Parameters:
runnable - a runnable to be executed by new thread instance
Returns:
constructed thread


Copyright © 2014 Mairie de Paris. All Rights Reserved.