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.
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. |
void onCreate(
MamaBasicSubscription subscription
)
Called when subscription creation is complete, and before the onMsg() callback is invoked
Parameters:
void onError(
MamaBasicSubscription subscription,
MamaStatus.mamaStatus status,
string subject
)
Called when an error has occurred with the subscription
Parameters:
void onMsg(
MamaBasicSubscription subscription,
MamaMsg message
)
Invoked when a message arrives
Parameters:
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:
Updated on 2023-03-31 at 15:29:32 +0100