Home | Trees | Indices | Help |
|
---|
|
object --+ | QueueManager
Class that manages distribution of messages to queue subscribers.
This class uses threading.RLock
to guard the public
methods. This is probably a bit excessive, given 1) the actomic nature
of basic dict
read/write operations and 2) the fact that
most of the internal data structures are keying off of the STOMP
connection, which is going to be thread-isolated. That said, this seems
like the technically correct approach and should increase the chance of
this code being portable to non-GIL systems.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Instance Variables | |
coilmq.scheduler.QueuePriorityScheduler |
queue_scheduler The scheduler that chooses which queue to select for sending backlogs for a single connection. |
coilmq.store.QueueStore |
store The queue storage backend to use. |
coilmq.scheduler.SubscriberPriorityScheduler |
subscriber_scheduler The scheduler that chooses which subscriber to send messages to. |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Closes all resources/backends associated with this queue manager.
|
Returns a count of the number of subscribers. If destination is specified then it only returns count of subscribers for that specific destination.
|
Subscribes a connection to the specified destination (topic or queue).
|
Unsubscribes a connection from a destination (topic or queue).
|
Removes a subscriber connection, ensuring that any pending commands get requeued.
|
Sends a MESSAGE frame to an eligible subscriber connection. Note that this method will modify the incoming message object to add a message-id header (if not present) and to change the command to 'MESSAGE' (if it is not).
|
Acknowledge receipt of a message. If the `transaction` parameter is non-null, the frame being ack'd will be queued so that it can be requeued if the transaction is rolled back.
|
Resend the messages that were ACK'd in specified transaction. This is called by the engine when there is an abort command.
|
Clears out the queued ACK frames for specified transaction. This is called by the engine when there is a commit command.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jun 28 20:30:42 2011 | http://epydoc.sourceforge.net |