tmQueue Class Reference
#include <tmQueue.h>
Public Member Functions | |
tmQueue () | |
virtual | ~tmQueue () |
nsresult | Init (const char *aName, PRUint32 aID, tmTransactionManager *aTM) |
nsresult | AttachClient (PRUint32 aClientID) |
nsresult | DetachClient (PRUint32 aClientID) |
nsresult | FlushQueue (PRUint32 aClientID) |
nsresult | PostTransaction (tmTransaction *aTrans) |
PRUint32 | GetID () const |
const char * | GetName () const |
Protected Attributes | |
tmVector | mTransactions |
tmVector | mListeners |
PRUint32 | mID |
char * | mName |
tmTransactionManager * | mTM |
Detailed Description
This class isn't so much a queue as it is storage for transactions. It is set up to recieve and store transactions in a growing collection (using tmVectors). Different messages can be recieved from the Transaction Manager(TM) the queue belongs to which can add and remove listeners, empty the queue (flush), and add messages to the queue.See the documentation in tmTransactionService.h for details on the messages you can send to and recieve from the queues in the TM
Constructor & Destructor Documentation
|
Set the internal state to default values. Init() must be called after construction to allocate the storage and set the name and ID. |
|
Reclaim the memory allocated in Init(). Destroys the transactions in the transaction storage and the ids in the listener storage |
Member Function Documentation
|
Adds the clientID to the list of queue listeners. A reply is created and sent to the client. The reply contains both the name of the queue and the id, so the client can match the id to the name and then use the id in all further communications to the queue. The reply is sent for all cases.
|
|
Removes the client from the list of queue listeners. A reply is created and sent to the client to indicate the success of the removal. The reply is sent for all cases.
|
|
Removes all the transactions being held in the queue, creating an empty queue. A reply is created and sent to the client to indicate the completion of the operation. The reply is sent for all cases.
|
|
|
|
|
|
Initialize internal storage vectors and set the name of the queue and the pointer to the TM container.
|
|
Places the transaction passed in on the queue. Takes ownership of the transaction, deletes it in the destructor. A reply is created and sent to the client to indicate the success of the posting of the transaction. The reply is sent for all cases except INVALID_ARG (no destination)
|
The documentation for this class was generated from the following file:
Generated on Mon Feb 24 10:22:50 2003 for transaction manager by 1.3-rc3