activemq::concurrent::PooledThreadListener Class Reference

#include <PooledThreadListener.h>

Inheritance diagram for activemq::concurrent::PooledThreadListener:

activemq::concurrent::ThreadPool List of all members.

Public Member Functions

virtual ~PooledThreadListener (void)
virtual void onTaskStarted (PooledThread *thread)=0
virtual void onTaskCompleted (PooledThread *thread)=0
virtual void onTaskException (PooledThread *thread, exceptions::ActiveMQException &ex)=0

Constructor & Destructor Documentation

virtual activemq::concurrent::PooledThreadListener::~PooledThreadListener void   )  [inline, virtual]
 

Destructor


Member Function Documentation

virtual void activemq::concurrent::PooledThreadListener::onTaskCompleted PooledThread thread  )  [pure virtual]
 

Called by a pooled thread when it has completed a task and is going back to waiting for another task to run

Parameters:
Pointer the the Pooled Thread that is making this call.

Implemented in activemq::concurrent::ThreadPool.

virtual void activemq::concurrent::PooledThreadListener::onTaskException PooledThread thread,
exceptions::ActiveMQException ex
[pure virtual]
 

Called by a pooled thread when it has encountered an exception while running a user task, after receiving this notification the callee should assume that the PooledThread is now no longer running.

Parameters:
Pointer to the Pooled Thread that is making this call
The Exception that occured.

Implemented in activemq::concurrent::ThreadPool.

virtual void activemq::concurrent::PooledThreadListener::onTaskStarted PooledThread thread  )  [pure virtual]
 

Called by a pooled thread when it is about to begin executing a new task.

Parameters:
Pointer to the Pooled Thread that is making this call

Implemented in activemq::concurrent::ThreadPool.


The documentation for this class was generated from the following file:
Generated on Thu Aug 3 18:03:31 2006 for activemq-cpp by  doxygen 1.4.5