#include <MamaQueueGroup.h>
Name | |
---|---|
virtual | ~MamaQueueGroup() |
MamaQueueGroup(int numberOfQueues, mamaBridge bridgeImpl) | |
virtual void | destroyWait() |
virtual MamaQueue * | getNextQueue() |
MamaQueue * | getQueueByIndex(int index) |
virtual int | getNumberOfQueues() |
virtual void | stopDispatch() |
virtual void | startDispatch() |
class Wombat::MamaQueueGroup;
A simple class for allocating subscriptions amongst multiple queues in a round robin. This class creates dispatchers for the queues as well.
virtual ~MamaQueueGroup()
MamaQueueGroup(
int numberOfQueues,
mamaBridge bridgeImpl
)
If numberOfQueues == 0, getNextQueue returns the default queue for the bridge
virtual void destroyWait()
Destroy all the queues. Note that a queue can only be destroyed if all of the objects created on it, (timers, subscriptions etc), have been destroyed. This function will block until all of the objects have been destroyed and will then destroy the queues.
virtual MamaQueue * getNextQueue()
Return the next available queue from the queue group. Queues are returned in a round robin fashion.
MamaQueue * getQueueByIndex(
int index
)
Return: pointer to queue object
Return the requested Queue based on the given index, or NULL if it is not a valid index.
virtual int getNumberOfQueues()
Return the number of MamaQueues currently managed by this queue group.
virtual void stopDispatch()
Stop dispatching on queues in the queue group.
virtual void startDispatch()
Start dispatching on all queues in a group. NOTE: This only should be used after a previous call to stopDispatch. Dispatching on a queue is started hwen it is created
Updated on 2023-03-31 at 15:29:25 +0100