org.apache.catalina.tribes.transport
Class WorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.catalina.tribes.transport.WorkerThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
BioReplicationThread, NioReplicationThread

public abstract class WorkerThread
extends java.lang.Thread

Version:
$Revision: 366253 $ $Date: 2006-01-05 13:30:42 -0600 (Thu, 05 Jan 2006) $
Author:
Filip Hanik

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int OPTION_DIRECT_BUFFER
           
protected  boolean useBufferPool
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WorkerThread(ListenCallback callback)
           
 
Method Summary
 void close()
           
 ListenCallback getCallback()
           
 int getOptions()
           
 ThreadPool getPool()
           
 boolean getUseBufferPool()
           
 boolean isDoRun()
           
 void setCallback(ListenCallback callback)
           
 void setDoRun(boolean doRun)
           
 void setOptions(int options)
           
 void setPool(ThreadPool pool)
           
 void setUseBufferPool(boolean usebufpool)
           
 
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, run, 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

OPTION_DIRECT_BUFFER

public static final int OPTION_DIRECT_BUFFER
See Also:
Constant Field Values

useBufferPool

protected boolean useBufferPool
Constructor Detail

WorkerThread

public WorkerThread(ListenCallback callback)
Method Detail

setPool

public void setPool(ThreadPool pool)

setOptions

public void setOptions(int options)

setCallback

public void setCallback(ListenCallback callback)

setDoRun

public void setDoRun(boolean doRun)

getPool

public ThreadPool getPool()

getOptions

public int getOptions()

getCallback

public ListenCallback getCallback()

isDoRun

public boolean isDoRun()

close

public void close()

setUseBufferPool

public void setUseBufferPool(boolean usebufpool)

getUseBufferPool

public boolean getUseBufferPool()


Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.