Classes Files

Wombat::MamaBasicWildCardSubscription

More…

#include <MamaBasicWildCardSubscription.h>

Inherits from Wombat::MamaBasicSubscription

Public Functions

  Name
virtual ~MamaBasicWildCardSubscription()
  MamaBasicWildCardSubscription(void )
virtual void create(MamaTransport * transport, MamaQueue * queue, MamaBasicWildCardSubscriptionCallback * callback, const char * source, const char * topic, void * closure =NULL)
virtual const char * getSymbol(void ) const
virtual const char * getSource(void ) const
virtual void * getTopicClosure() const
virtual void setTopicClosure(void * closure)
virtual void muteCurrentTopic(void )
virtual MamaBasicWildCardSubscriptionCallback * getBasicWildCardCallback(void ) const

Additional inherited members

Public Functions inherited from Wombat::MamaBasicSubscription

  Name
virtual ~MamaBasicSubscription()
  MamaBasicSubscription(void )
virtual void createBasic(MamaTransport * transport, MamaQueue * queue, MamaBasicSubscriptionCallback * callback, const char * topic, void * closure =NULL)
virtual void createBasic(MamaTransport * transport, MamaQueue * queue, MamaSubscriptionCallback * callback, const char * topic, void * closure =NULL)
virtual void destroy()
virtual void destroyEx()
virtual bool isActive(void ) const
virtual const char * getTopic(void ) const
virtual MamaTransport * getTransport(void ) const
virtual MamaBasicSubscriptionCallback * getBasicCallback(void ) const
virtual MamaQueue * getQueue(void ) const
virtual void setClosure(void * closure)
virtual void * getClosure(void ) const
virtual void setDebugLevel(MamaLogLevel level)
virtual MamaLogLevel getDebugLevel() const
virtual bool checkDebugLevel(MamaLogLevel level) const
virtual mamaSubscriptionState getState(void )

Protected Attributes inherited from Wombat::MamaBasicSubscription

  Name
void * mClosure
MamaQueue * mQueue
mamaSubscription mSubscription
MamaTransport * mTransport

Detailed Description

class Wombat::MamaBasicWildCardSubscription;

See: Mama

Author: Michael Schonberg copyright 2003 Wombat Consulting Inc.

The [MamaBasicWildCardSubscription](classWombat_1_1MamaBasicWildCardSubscription.html) interface represents a subscription to a topic with no market data semantics.

Public Functions Documentation

function ~MamaBasicWildCardSubscription

virtual ~MamaBasicWildCardSubscription()

The destructor will call [destroy()](classWombat_1_1MamaBasicSubscription.html#function-destroy) if the subscription has not already been destroyed.

function MamaBasicWildCardSubscription

MamaBasicWildCardSubscription(
    void 
)

Constructor. Call createBasicWildCard() to activate the subscription.

function create

virtual void create(
    MamaTransport * transport,
    MamaQueue * queue,
    MamaBasicWildCardSubscriptionCallback * callback,
    const char * source,
    const char * topic,
    void * closure =NULL
)

Parameters:

  • transport The transport to use. Must be a basic transport.
  • queue The queue.
  • callback The mamaMsgCallbacks structure containing the three callback methods.
  • topic The topic.
  • closure The caller supplied closure.

Create a basic wild card subscription without market data semantics.

If the topic is NULL for WMW, this method creates a “transport” subscription that subscribes to all the topics from publishers with the the “publish_name” property equal to the source value.

function getSymbol

virtual const char * getSymbol(
    void 
) const

Return: The topic.

Return the symbol for this subscription.

function getSource

virtual const char * getSource(
    void 
) const

Return: The topic.

Return the source for this subscription.

function getTopicClosure

virtual void * getTopicClosure() const

Get the closure for the specific wildcard topic.

This method may only be called from the onMsg callback.

@ return The closure specified by ::setTopicClosure() or NULL if no topic closure set.

function setTopicClosure

virtual void setTopicClosure(
    void * closure
)

Set the topic closure for the current message’s topic.

This method can only be invoked from the onMsg() callback.

@prarm closure The closure.

function muteCurrentTopic

virtual void muteCurrentTopic(
    void 
)

For “transport” subscriptions (WMW only) stop processing messages for the current topic.

function getBasicWildCardCallback

virtual MamaBasicWildCardSubscriptionCallback * getBasicWildCardCallback(
    void 
) const

Return: the callback.

Return the [MamaSubscriptionCallback](classWombat_1_1MamaSubscriptionCallback.html) for this subscription.


Updated on 2023-03-31 at 15:29:25 +0100