Name | |
---|---|
MAMAExpDLL mama_status | mamaQueueGroup_create(mamaQueueGroup * queueGroup, int numberOfQueues, mamaBridge bridgeImpl) |
MAMAExpDLL mama_status | mamaQueueGroup_destroy(mamaQueueGroup queueGroup) |
MAMAExpDLL mama_status | mamaQueueGroup_getNextQueue(mamaQueueGroup queueGroup, mamaQueue * queue) |
MAMAExpDLL mama_status | mamaQueueGroup_getQueueByIndex(mamaQueueGroup queueGroup, mamaQueue * queue, int index) |
MAMAExpDLL mama_status | mamaQueueGroup_getNumberOfQueues(mamaQueueGroup queueGroup, int * count) |
MAMAExpDLL mama_status | mamaQueueGroup_stopDispatch(mamaQueueGroup queueGroup) |
MAMAExpDLL mama_status | mamaQueueGroup_startDispatch(mamaQueueGroup queueGroup) |
MAMAExpDLL mama_status | mamaQueueGroup_destroyWait(mamaQueueGroup queueGroup) |
MAMAExpDLL mama_status mamaQueueGroup_create(
mamaQueueGroup * queueGroup,
int numberOfQueues,
mamaBridge bridgeImpl
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Creates a MAMA Queue Group. A MAMA Queue Group provides a convenient way to define a series of queues which can then be used for strategic load balancing and locality of context.
MAMAExpDLL mama_status mamaQueueGroup_destroy(
mamaQueueGroup queueGroup
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Destroys a given queue group along with underlying queues and dispatchers.
MAMAExpDLL mama_status mamaQueueGroup_getNextQueue(
mamaQueueGroup queueGroup,
mamaQueue * queue
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Returns the next queue to be selected when doing round robin dispatching.
MAMAExpDLL mama_status mamaQueueGroup_getQueueByIndex(
mamaQueueGroup queueGroup,
mamaQueue * queue,
int index
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Returns the specifically requested queue based on its index.
MAMAExpDLL mama_status mamaQueueGroup_getNumberOfQueues(
mamaQueueGroup queueGroup,
int * count
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Gather up the number of queues contained within this queue group.
MAMAExpDLL mama_status mamaQueueGroup_stopDispatch(
mamaQueueGroup queueGroup
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
This will stop dispatching for all queues in the given queue group
MAMAExpDLL mama_status mamaQueueGroup_startDispatch(
mamaQueueGroup queueGroup
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
This will start dispatching for all queues in the given queue group
MAMAExpDLL mama_status mamaQueueGroup_destroyWait(
mamaQueueGroup queueGroup
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
This will destroy the given queue group by stopping dispatch, and waiting until queue is empty before returning. Note that mamaQueueGroup_destroy will still need to be called after this to destroy the underlying mamaQueueGroup handle.
#ifndef MamaQueueGroupH__
#define MamaQueueGroupH__
#if defined(__cplusplus)
extern "C"
{
#endif
#include <mama/config.h>
#include <mama/status.h>
#include <mama/types.h>
#include <mama/queue.h>
MAMAExpDLL
extern mama_status
mamaQueueGroup_create (
mamaQueueGroup* queueGroup,
int numberOfQueues,
mamaBridge bridgeImpl);
MAMAExpDLL
extern mama_status
mamaQueueGroup_destroy (
mamaQueueGroup queueGroup);
MAMAExpDLL
extern mama_status
mamaQueueGroup_getNextQueue (
mamaQueueGroup queueGroup,
mamaQueue* queue);
MAMAExpDLL
extern mama_status
mamaQueueGroup_getQueueByIndex (
mamaQueueGroup queueGroup,
mamaQueue* queue,
int index);
MAMAExpDLL
extern mama_status
mamaQueueGroup_getNumberOfQueues (
mamaQueueGroup queueGroup,
int* count);
MAMAExpDLL
extern mama_status
mamaQueueGroup_stopDispatch (
mamaQueueGroup queueGroup);
MAMAExpDLL
extern mama_status
mamaQueueGroup_startDispatch (
mamaQueueGroup queueGroup);
MAMAExpDLL
extern mama_status
mamaQueueGroup_destroyWait(
mamaQueueGroup queueGroup);
#if defined(__cplusplus)
}
#endif
#endif /* MamaQueueGroupH__ */
Updated on 2023-03-31 at 15:29:16 +0100