This interface should be implemented by clients wish to create a MAMA subscription, it contains callback functions that will be invoked whenever specific events occur.
Name | |
---|---|
void | onCreate(MamaSubscription subscription) Called when subscription creation is complete, and before the onMsg() callback is invoked |
void | onError(MamaSubscription subscription, MamaStatus.mamaStatus status, string subject) Called when an error has occurred with the subscription |
void | onGap(MamaSubscription subscription) Function invoked when a sequence number gap is detected. At this point the topic is considered stale and the subscription will not receive further messages until the feed handler satisfies a recap request. |
void | onMsg(MamaSubscription subscription, MamaMsg message) Invoked when a message arrives |
void | onQuality(MamaSubscription subscription, mamaQuality quality, string symbol) Invoked to indicate a data quality event. |
void | onRecapRequest(MamaSubscription subscription) Invoked when a recap is requested upon detecting a sequence number gap. |
void | onDestroy(MamaSubscription subscription) Function invoked when a subscription has been destroyed or deactivated. |
void onCreate(
MamaSubscription subscription
)
Called when subscription creation is complete, and before the onMsg() callback is invoked
Parameters:
void onError(
MamaSubscription subscription,
MamaStatus.mamaStatus status,
string subject
)
Called when an error has occurred with the subscription
Parameters:
void onGap(
MamaSubscription subscription
)
Function invoked when a sequence number gap is detected. At this point the topic is considered stale and the subscription will not receive further messages until the feed handler satisfies a recap request.
Parameters:
void onMsg(
MamaSubscription subscription,
MamaMsg message
)
Invoked when a message arrives
Parameters:
void onQuality(
MamaSubscription subscription,
mamaQuality quality,
string symbol
)
Invoked to indicate a data quality event.
Parameters:
void onRecapRequest(
MamaSubscription subscription
)
Invoked when a recap is requested upon detecting a sequence number gap.
Parameters:
void onDestroy(
MamaSubscription subscription
)
Function invoked when a subscription has been destroyed or deactivated.
Parameters:
Updated on 2023-03-31 at 15:29:33 +0100