org.jruby
Class Ruby.DaemonThreadFactory

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

public static class Ruby.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
Ruby.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

Ruby.DaemonThreadFactory

public Ruby.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.