Classes Files

Wombat::MamaBasicSubscriptionCallback

This interface should be implemented by clients wish to create a MAMA Basic subscription, it contains callback functions that will be invoked whenever specific events occur.

Public Functions

  Name
void onCreate(MamaBasicSubscription subscription)
Called when subscription creation is complete, and before the onMsg() callback is invoked
void onError(MamaBasicSubscription subscription, MamaStatus.mamaStatus status, string subject)
Called when an error has occurred with the subscription
void onMsg(MamaBasicSubscription subscription, MamaMsg message)
Invoked when a message arrives
void onDestroy(MamaBasicSubscription subscription, object closure)
Invoked whenever the basic subscription has been destroyed. The client can have confidence that no further messages will be placed on the queue for this subscription.

Public Functions Documentation

function onCreate

void onCreate(
    MamaBasicSubscription subscription
)

Called when subscription creation is complete, and before the onMsg() callback is invoked

Parameters:

  • subscription The subscription that has been created.

function onError

void onError(
    MamaBasicSubscription subscription,
    MamaStatus.mamaStatus status,
    string subject
)

Called when an error has occurred with the subscription

Parameters:

  • subscription The subscription where the error has been detected.
  • status The status code associated with the error.
  • subject The subject for entitlement errors.

function onMsg

void onMsg(
    MamaBasicSubscription subscription,
    MamaMsg message
)

Invoked when a message arrives

Parameters:

  • subscription The subscription where the message has arrived.
  • message The message.

function onDestroy

void onDestroy(
    MamaBasicSubscription subscription,
    object closure
)

Invoked whenever the basic subscription has been destroyed. The client can have confidence that no further messages will be placed on the queue for this subscription.

Parameters:

  • subscription The basic subscription.
  • closure The closure provided to the createBasic function.

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