A class for distributing events across multiple queues in a round robin fashion.
Inherits from IDisposable
Name | |
---|---|
MamaQueueGroup(MamaBridge bridgeImpl, int queueCount) Construct a queue manager with given number of queues/threads |
|
void | destroy() Destroy the queue group and destroy all the queues without waiting, this is equivalent to disposing the class. |
void | destroyWait() Destroy the queue group and destroy all the queues waiting on each queue, this is equivalent to disposing the class. |
void | Dispose() Dispose managed and unmanaged resources. This will destroy all the queues without waiting for them to shutdown. |
void | start() Start dispatching on all queues. |
void | stop() Stop dispatching on all queues. |
MamaQueue | getNextQueue() This function will return the next queue since it was called last or the first queue in the group if this is the first time that it has been called. Note that when all queues have been returned it will go back to the start of the array. |
MamaQueue | getQueueByIndex(int index) This function will return the queue in this queue group at the given index specifically. |
MamaQueueGroup(
MamaBridge bridgeImpl,
int queueCount
)
Construct a queue manager with given number of queues/threads
Parameters:
void destroy()
Destroy the queue group and destroy all the queues without waiting, this is equivalent to disposing the class.
void destroyWait()
Destroy the queue group and destroy all the queues waiting on each queue, this is equivalent to disposing the class.
void Dispose()
Dispose managed and unmanaged resources. This will destroy all the queues without waiting for them to shutdown.
void start()
Start dispatching on all queues.
void stop()
Stop dispatching on all queues.
MamaQueue getNextQueue()
This function will return the next queue since it was called last or the first queue in the group if this is the first time that it has been called. Note that when all queues have been returned it will go back to the start of the array.
MamaQueue getQueueByIndex(
int index
)
This function will return the queue in this queue group at the given index specifically.
Updated on 2023-03-31 at 15:29:32 +0100