org.littleshoot.util
Class DaemonThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.littleshoot.util.DaemonThread
All Implemented Interfaces:
Runnable

public class DaemonThread
extends Thread

Specialized Thread subclass that's a daemon thread by default.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DaemonThread()
          Creates a new daemon thread.
DaemonThread(Runnable runner)
          Creates a new daemon thread.
DaemonThread(Runnable runner, String name)
          Creates a new daemon thread.
DaemonThread(String name)
          Creates a new daemon thread.
 
Method Summary
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DaemonThread

public DaemonThread()
Creates a new daemon thread.


DaemonThread

public DaemonThread(String name)
Creates a new daemon thread.

Parameters:
name - The name of the thread.

DaemonThread

public DaemonThread(Runnable runner)
Creates a new daemon thread.

Parameters:
runner - The runnable to run on this thread.

DaemonThread

public DaemonThread(Runnable runner,
                    String name)
Creates a new daemon thread.

Parameters:
runner - The runnable to run on this thread.
name - The name of the thread.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.