Asterisk-Java

org.asteriskjava.util
Class DaemonThreadFactory

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

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

A ThreadFactory that creates daemon threads for use with an Executor.

Since:
0.3
Version:
$Id: DaemonThreadFactory.java 959 2008-02-02 23:56:59Z srt $
Author:
srt

Constructor Summary
DaemonThreadFactory()
          Creates a new instance.
 
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()
Creates a new instance.

Method Detail

newThread

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

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.