org.jruby.threading
Class DaemonThreadFactory

java.lang.Object
  extended by org.jruby.threading.DaemonThreadFactory
All Implemented Interfaces:
java.util.concurrent.ThreadFactory

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

A ThreadFactory for when we're using pooled threads; we want to create the threads with daemon = true so they don't keep us from shutting down.


Constructor Summary
DaemonThreadFactory()
           
 
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()
Method Detail

newThread

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


Copyright © 2002-2007 JRuby Team. All Rights Reserved.