Home | Trees | Indices | Help |
|
---|
|
object --+ | QueueStore --+ | SAQueue
A QueueStore implementation that stores messages in a database and uses SQLAlchemy to interface with the database.
Note that this implementation does not actually use the ORM capabilities of SQLAlchemy, but simply uses SQLAlchemy for the DB abstraction for SQL building and DDL (table creation).
This coilmq.store.sa.model.setup_tables function is used to actually
define (& create) the database tables. This class also depends on
the init_model method have been called to define the coilmq.store.sa.model.Session
class-like callable
(and the engine & metadata).
Finally, this class does not explicitly use shared data (db connections); a new Session is created in each method. The actual implementation is handled using SQLAlchemy scoped sessions, which provide thread-local Session class-like callables. As a result of deferring that to the SA layer, we don't need to use synchronization locks to guard calls to the methods in this store implementation.
Instance Methods | |||
|
|||
stompclient.frame.Frame
|
|
||
bool
|
|
||
int
|
|
||
set
|
|
||
|
|||
Inherited from Inherited from |
Class Variables | |
Inherited from |
Instance Variables | |
Inherited from |
Properties | |
Inherited from |
Method Details |
Store message (frame) for specified destinationination.
|
Removes and returns an item from the queue (or
|
Whether specified queue has any frames.
|
Size of the queue for specified destination.
|
Provides a list of destinations (queue "addresses") available.
|
Closes the databases, freeing any resources (and flushing any unsaved changes to disk).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jun 28 20:30:42 2011 | http://epydoc.sourceforge.net |