net.datacrow.core
Class DcThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.datacrow.core.DcThread
All Implemented Interfaces:
java.lang.Runnable

public class DcThread
extends java.lang.Thread

Extended Thread class. Allows for easy cancellation and offers the ability to cancel all other threads part of the same thread group.

Author:
Robert Jan van der Waals

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DcThread(java.lang.ThreadGroup group, java.lang.String name)
           
 
Method Summary
 void cancel()
           
 void cancelOthers()
           
 boolean isCanceled()
           
 
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

DcThread

public DcThread(java.lang.ThreadGroup group,
                java.lang.String name)
Method Detail

cancel

public void cancel()

isCanceled

public boolean isCanceled()

cancelOthers

public void cancelOthers()