voldemort.utils
Class DaemonThreadFactory

java.lang.Object
  extended by voldemort.utils.DaemonThreadFactory
All Implemented Interfaces:
java.util.concurrent.ThreadFactory

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

A thread factory that sets the threads to run as daemons. (Otherwise things that embed the threadpool can't shut themselves down).


Constructor Summary
DaemonThreadFactory(java.lang.String threadNamePrefix)
           
 
Method Summary
 java.lang.Thread newThread(java.lang.Runnable r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaemonThreadFactory

public DaemonThreadFactory(java.lang.String threadNamePrefix)
Method Detail

newThread

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


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu