org.sonatype.sisu.goodies.thread
Class TaskThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.sonatype.sisu.goodies.thread.ThreadSupport
          extended by org.sonatype.sisu.goodies.thread.TaskThread
All Implemented Interfaces:
Runnable

public class TaskThread
extends ThreadSupport

Support for Runnable task executing threads.

Since:
1.0

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.sonatype.sisu.goodies.thread.ThreadSupport
log
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TaskThread(Runnable task)
           
TaskThread(Runnable task, String name)
           
TaskThread(ThreadGroup group, Runnable task, String name)
           
 
Method Summary
protected  void doRun()
           
 
Methods inherited from class org.sonatype.sisu.goodies.thread.ThreadSupport
cancel, createLogger, doStop, getLock, isCanceled, onFailure, run, toString
 
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskThread

public TaskThread(Runnable task)

TaskThread

public TaskThread(Runnable task,
                  String name)

TaskThread

public TaskThread(ThreadGroup group,
                  Runnable task,
                  String name)
Method Detail

doRun

protected void doRun()
              throws Exception
Specified by:
doRun in class ThreadSupport
Throws:
Exception


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.