MamaQueueGroup.h
Go to the documentation of this file.
1
/* $Id$
2
*
3
* OpenMAMA: The open middleware agnostic messaging API
4
* Copyright (C) 2011 NYSE Technologies, Inc.
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
* 02110-1301 USA
20
*/
21
22
#ifndef MAMA_QUEUE_GROUP_CPP_H__
23
#define MAMA_QUEUE_GROUP_CPP_H__
24
25
namespace
Wombat
26
{
27
28
class
MamaQueue;
29
class
MamaDispatcher;
30
35
class
MAMACPPExpDLL
MamaQueueGroup
36
{
37
public
:
38
virtual
~
MamaQueueGroup
();
39
44
MamaQueueGroup
(
45
int
numberOfQueues,
46
mamaBridge bridgeImpl);
47
53
virtual
void
destroyWait ();
54
59
virtual
MamaQueue
* getNextQueue ();
60
64
virtual
int
getNumberOfQueues ();
65
69
virtual
void
stopDispatch ();
70
76
virtual
void
startDispatch ();
77
78
private
:
79
int
mQueueCount;
80
unsigned
int
mCallCount;
81
MamaQueue
** mQueues;
82
MamaDispatcher
** mDispatchers;
83
MamaQueue
* mDefaultQueue;
84
85
86
MamaQueueGroup
()
87
{
88
}
89
90
MamaQueueGroup
(
91
const
MamaQueueGroup
&)
92
{
93
}
94
95
};
96
97
}
/* namespace Wombat */
98
99
#endif // MAMA_QUEUE_GROUP_CPP_H__
Wombat::MamaQueue
Queue allows applications to dispatch events in order with multiple threads using a single MamaDispat...
Definition:
MamaQueue.h:40
Wombat::MamaQueueGroup
A simple class for allocating subscriptions amongst multiple queues in a round robin.
Definition:
MamaQueueGroup.h:35
Wombat
Definition:
MamaBasicSubscription.h:27
Wombat::MamaDispatcher
The dispatcher dispatches events from a queue until it is destroyed or MamaQueue->stopDispatch () is ...
Definition:
MamaDispatcher.h:35
© 2012 Linux Foundation