Skip navigation links


com.essbase.eas.server.fireforget
Class WorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.essbase.eas.server.fireforget.WorkerThread

All Implemented Interfaces:
java.lang.Runnable

public class WorkerThread
extends java.lang.Thread

WorkerThread Allows asynchronous execution of Work objects

Version:
1.00 07/18/2000
Author:
Brendan Gaul

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
WorkerThread(ThreadPoolManager hp)
           

 

Method Summary
 void assignWork(Work w)
          Associate this thread with a work object
 boolean lock()
          Reserve this thread for assignment
 void run()
          Waits for work, does work, returns to queue.
 void shutdown()
          Shutdown this thread
 void waitForWork()
          Waits (thread blocks) until needed for work

 

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, toString, yield

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

WorkerThread

public WorkerThread(ThreadPoolManager hp)

Method Detail

lock

public boolean lock()
Reserve this thread for assignment

assignWork

public void assignWork(Work w)
Associate this thread with a work object

shutdown

public void shutdown()
Shutdown this thread

run

public void run()
Waits for work, does work, returns to queue.
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

waitForWork

public void waitForWork()
Waits (thread blocks) until needed for work

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.