#include <MamaPublisher.h>
Name | |
---|---|
virtual | ~MamaPublisher(void ) |
MamaPublisher(void ) | |
virtual void | create(MamaTransport * transport, const char * topic, const char * source =NULL, const char * root =NULL) |
virtual void | createWithCallbacks(MamaTransport * transport, MamaQueue * queue, MamaPublisherCallback * cb, void * closure, const char * topic, const char * source =NULL, const char * root =NULL) |
virtual void | send(MamaMsg * msg) const |
virtual void | sendWithThrottle(MamaMsg * msg, MamaSendCompleteCallback * cb, void * closure) const |
virtual void | sendFromInbox(MamaInbox * inbox, MamaMsg * msg) const |
virtual void | sendFromInboxWithThrottle(MamaInbox * inbox, MamaMsg * msg, MamaSendCompleteCallback * cb, void * closure) const |
virtual void | sendReplyToInbox(const MamaMsg & request, MamaMsg * reply) const |
virtual void | sendReplyToInbox(mamaMsgReply replyHandle, MamaMsg * reply) const |
virtual void | destroy(void ) |
virtual void | destroyEx(void ) |
virtual MamaTransport * | getTransport(void ) const |
virtual mamaPublisherState | getState() const |
virtual const char * | stringForState(mamaPublisherState state) const |
virtual const char * | getRoot() const |
virtual const char * | getSource() const |
virtual const char * | getSymbol() const |
virtual MamaPublisherCallback * | getCallback() const |
Name | |
---|---|
MamaTransport * | mTransport |
class Wombat::MamaPublisher;
The publisher class publishes messages to basic or market data subscriptions depending on the underlying transport.
For basic transports the source parameter must be NULL.
virtual ~MamaPublisher(
void
)
MamaPublisher(
void
)
virtual void create(
MamaTransport * transport,
const char * topic,
const char * source =NULL,
const char * root =NULL
)
Parameters:
Create a MAMA publisher for the corresponding transport. If the transport is a market data transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored.
virtual void createWithCallbacks(
MamaTransport * transport,
MamaQueue * queue,
MamaPublisherCallback * cb,
void * closure,
const char * topic,
const char * source =NULL,
const char * root =NULL
)
virtual void send(
MamaMsg * msg
) const
virtual void sendWithThrottle(
MamaMsg * msg,
MamaSendCompleteCallback * cb,
void * closure
) const
virtual void sendFromInbox(
MamaInbox * inbox,
MamaMsg * msg
) const
virtual void sendFromInboxWithThrottle(
MamaInbox * inbox,
MamaMsg * msg,
MamaSendCompleteCallback * cb,
void * closure
) const
virtual void sendReplyToInbox(
const MamaMsg & request,
MamaMsg * reply
) const
virtual void sendReplyToInbox(
mamaMsgReply replyHandle,
MamaMsg * reply
) const
virtual void destroy(
void
)
virtual void destroyEx(
void
)
virtual MamaTransport * getTransport(
void
) const
Return the MamaTransport for the MamaPublisher.
virtual mamaPublisherState getState() const
virtual const char * stringForState(
mamaPublisherState state
) const
virtual const char * getRoot() const
virtual const char * getSource() const
virtual const char * getSymbol() const
virtual MamaPublisherCallback * getCallback() const
MamaTransport * mTransport;
Updated on 2023-03-31 at 15:29:25 +0100