Classes Files

com::wombat::mama::MamaBasicWildCardSubscriptionCallback

More…

Public Functions

  Name
void onCreate(MamaBasicSubscription subscription)
void onError(MamaBasicSubscription subscription, short wombatStatus, int platformError, String subject)
void onMsg(MamaBasicSubscription subscription, MamaMsg msg, String topic)
void onDestroy(MamaBasicSubscription subscription)

Detailed Description

class com::wombat::mama::MamaBasicWildCardSubscriptionCallback;

See: MamaBasicSubscription

Author: ldelaney

Public Functions Documentation

function onCreate

void onCreate(
    MamaBasicSubscription subscription
)

Parameters:

  • subscription The subscription.

Method invoked when subscription creation is complete. Since subscriptions are created asynchronous by throttle, this callback provides the subscription instance after the throttle processes the creation request. In the case where a subscription is created on a queue other than the default it is possible for onMsg calls to be processed to be called before the onCreate callback is processed.

function onError

void onError(
    MamaBasicSubscription subscription,
    short wombatStatus,
    int platformError,
    String subject
)

Parameters:

  • subscription The subscription.
  • wombatStatus The wombat error code.
  • platformError Third party, platform specific messaging error.
  • subject The subject for NOT_ENTITLED

Invoked if an error occurs during prior to subscription creation or if the subscription receives a message for an unentitled subject.

If the status is MamaMsgStatus.NOT_ENTITTLED the subject parameter is the specific unentitled subject. If the subscription subject contains wildcards, the subscription may still receive messages for other entitled subjects.

function onMsg

void onMsg(
    MamaBasicSubscription subscription,
    MamaMsg msg,
    String topic
)

Parameters:

  • subscription the [MamaBasicSubscription](classcom_1_1wombat_1_1mama_1_1MamaBasicSubscription.html).
  • msg The MamaMsg.

Invoked when a message arrives.

function onDestroy

void onDestroy(
    MamaBasicSubscription subscription
)

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