org.jboss.remoting.transport.multiplex.utility
Class StoppableThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.jboss.remoting.transport.multiplex.utility.StoppableThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
InputMultiplexor.MultiGroupInputThread, MultiplexingManager.PendingActionThread

Deprecated. As of release 2.4.0 the multiplex transport will no longer be actively supported.

public abstract class StoppableThread
extends java.lang.Thread

StoppableThread is the abstract parent of several threads used in the Multiplex system. It is distinguished by a shutdown() method that facilitates termination.

Copyright (c) 2005

Author:
Ron Sigal

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  boolean running
          Deprecated.  
protected  boolean stopped
          Deprecated.  
protected  boolean terminatedOnError
          Deprecated.  
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StoppableThread()
          Deprecated.  
 
Method Summary
protected abstract  void doInit()
          Deprecated.  
protected abstract  void doRun()
          Deprecated.  
protected abstract  void doShutDown()
          Deprecated.  
 boolean isRunning()
          Deprecated.  
 boolean isStopped()
          Deprecated.  
 void run()
          Deprecated.  
 void shutdown()
          Deprecated.  
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

running

protected boolean running
Deprecated. 

stopped

protected boolean stopped
Deprecated. 

terminatedOnError

protected boolean terminatedOnError
Deprecated. 
Constructor Detail

StoppableThread

public StoppableThread()
Deprecated. 
Method Detail

run

public void run()
Deprecated. 
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

doInit

protected abstract void doInit()
Deprecated. 

doRun

protected abstract void doRun()
Deprecated. 

doShutDown

protected abstract void doShutDown()
Deprecated. 

isRunning

public boolean isRunning()
Deprecated. 
Returns:

isStopped

public boolean isStopped()
Deprecated. 
Returns:

shutdown

public void shutdown()
Deprecated. 


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.