#include <MamdaBasicSubscription.h>
Name | |
---|---|
MamdaBasicSubscription() | |
~MamdaBasicSubscription() | |
void | create(MamaTransport * transport, MamaQueue * queue, const char * symbol, void * closure =NULL) |
void | setTimeout(double timeout) |
void | addMsgListener(MamdaBasicMsgListener * listener) |
void | addQualityListener(MamdaBasicQualityListener * listener) |
void | addErrorListener(MamdaBasicErrorListener * listener) |
void | activate() |
void | deactivate() |
void | setSymbol(const char * symbol) |
const char * | getSymbol() const |
void | setClosure(void * closure) |
void * | getClosure() const |
void | setTransport(MamaTransport * transport) |
MamaTransport * | getTransport() const |
void | setQueue(MamaQueue * queue) |
MamaQueue * | getQueue() const |
class Wombat::MamdaBasicSubscription;
A MamdaBasicSubscription is used to register interest in a particular symbol. A MamaTransport is required to actually activate the subscription.
Multiple listeners can be added to the MamdaBasicSubscription. In this way, an application can make use of more than one of the specialized value added MAMDA listeners, such as MamdaCalcListener
MamdaBasicSubscription()
~MamdaBasicSubscription()
void create(
MamaTransport * transport,
MamaQueue * queue,
const char * symbol,
void * closure =NULL
)
Create and activate the subscription. You can alternatively set all objects and properties and then call activate is you wish.
void setTimeout(
double timeout
)
Set the subscription timeout (in seconds). Do this before calling activate().
void addMsgListener(
MamdaBasicMsgListener * listener
)
Add a listener for regular messages.
void addQualityListener(
MamdaBasicQualityListener * listener
)
Add a listener for changes in quality status.
void addErrorListener(
MamdaBasicErrorListener * listener
)
Add a listener for error events.
void activate()
Activate the subscription. Until this method is invoked, no updates will be received. Is called by create().
void deactivate()
Deactivate the subscription. No more updates will be received for this subscription (unless activate() is invoked again).
void setSymbol(
const char * symbol
)
Set the symbol for the subscription. Do this before calling activate().
const char * getSymbol() const
Get the symbol for the subscription.
void setClosure(
void * closure
)
Set the closure for the subscription. Do this before calling activate().
void * getClosure() const
Get the additional object passed as the closure to the create() method.
void setTransport(
MamaTransport * transport
)
Set the MAMA transport. Do this before calling activate().
MamaTransport * getTransport() const
Get the MamaTransport for this subscription
void setQueue(
MamaQueue * queue
)
Set the MAMA queue. Do this before calling activate().
MamaQueue * getQueue() const
Get the MAMA queue for this subscription.
Updated on 2023-03-31 at 15:29:57 +0100