Name | |
---|---|
void | onCreate(MamaSubscription subscription) |
void | onError(MamaSubscription subscription, short wombatStatus, int platformError, String subject, Exception e) |
void | onMsg(MamaSubscription subscription, MamaMsg msg) |
void | onQuality(MamaSubscription subscription, short quality, short cause, final Object platformInfo) |
void | onRecapRequest(MamaSubscription subscription) |
void | onGap(MamaSubscription subscription) |
void | onDestroy(MamaSubscription subscription) |
class com::wombat::mama::MamaSubscriptionCallback;
See: MamaSubscription
The message callback interface. Callers provide an object implementing this interface on creating a [MamaSubscription](classcom_1_1wombat_1_1mama_1_1MamaSubscription.html)
.
void onCreate(
MamaSubscription subscription
)
Parameters:
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.
void onError(
MamaSubscription subscription,
short wombatStatus,
int platformError,
String subject,
Exception e
)
Parameters:
Invoked if an error occurs during subscription creation or if the
subscription receives a message for an unentitled subject.
If the status is MamaStatus.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.
void onMsg(
MamaSubscription subscription,
MamaMsg msg
)
Parameters:
[MamaSubscription](classcom_1_1wombat_1_1mama_1_1MamaSubscription.html)
.Invoked when a message arrives.
void onQuality(
MamaSubscription subscription,
short quality,
short cause,
final Object platformInfo
)
Parameters:
[MamaSubscription](classcom_1_1wombat_1_1mama_1_1MamaSubscription.html)
.Invoked when a the quality of this subscription changes.
The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported: tibrv: provides the String object version of the tibrv advisory message
void onRecapRequest(
MamaSubscription subscription
)
Parameters:
[MamaSubscription](classcom_1_1wombat_1_1mama_1_1MamaSubscription.html)
.Method invoked when a recap is requested upon detecting a sequence number gap.
void onGap(
MamaSubscription subscription
)
Parameters:
[MamaSubscription](classcom_1_1wombat_1_1mama_1_1MamaSubscription.html)
.Method 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 onDestroy(
MamaSubscription subscription
)
Parameters:
This method is invoked when a subscription has been completely destroyed or deactivated, the client can have confidence that no further messages will be placed on the queue for this subscription.
Updated on 2023-03-31 at 15:29:44 +0100