#include <PooledThread.h>
Inheritance diagram for activemq::concurrent::PooledThread:
Public Member Functions | |
PooledThread (ThreadPool *pool) | |
virtual | ~PooledThread (void) |
virtual void | run (void) |
virtual void | stop (void) throw ( cms::CMSException ) |
virtual bool | isBusy (void) |
virtual void | setPooledThreadListener (PooledThreadListener *listener) |
virtual PooledThreadListener * | getPooledThreadListener (void) |
Private Member Functions | |
LOGCMS_DECLARE (logger) | |
Private Attributes | |
bool | busy |
bool | done |
PooledThreadListener * | listener |
ThreadPool * | pool |
|
Constructor
|
|
|
|
Removes a listener for this
|
|
Checks to see if the thread is busy, if busy it means that this thread has taken a task from the ThreadPool's queue and is processing it.
|
|
|
|
Run Method for this object waits for something to be enqueued on the ThreadPool and then grabs it and calls its run method. Reimplemented from activemq::concurrent::Thread. |
|
Adds a listener to this
|
|
Stops the Thread, thread will complete its task if currently running one, and then die. Does not block.
|
|
|
|
|
|
|
|
|