org.apache.jcs.utils.threadpool
Class ThreadPoolManager.MyThreadFactory

java.lang.Object
  extended by org.apache.jcs.utils.threadpool.ThreadPoolManager.MyThreadFactory
All Implemented Interfaces:
ThreadFactory
Enclosing class:
ThreadPoolManager

protected static class ThreadPoolManager.MyThreadFactory
extends Object
implements ThreadFactory

Allows us to set the daemon status on the threads.

Author:
aaronsm

Constructor Summary
protected ThreadPoolManager.MyThreadFactory()
           
 
Method Summary
 Thread newThread(Runnable runner)
          Sets the thread to daemon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPoolManager.MyThreadFactory

protected ThreadPoolManager.MyThreadFactory()
Method Detail

newThread

public Thread newThread(Runnable runner)
Sets the thread to daemon.

Specified by:
newThread in interface ThreadFactory
Parameters:
runner -
Returns:
a daemon thread


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.