public interface MamaSubscriptionCallback
MamaSubscription.MamaSubscription| Modifier and Type | Method and Description |
|---|---|
void |
onCreate(MamaSubscription subscription)
Method invoked when subscription creation is complete.
|
void |
onDestroy(MamaSubscription subscription)
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.
|
void |
onError(MamaSubscription subscription,
short wombatStatus,
int platformError,
java.lang.String subject,
java.lang.Exception e)
Invoked if an error occurs during subscription creation or if the
subscription receives a message for an unentitled subject.
|
void |
onGap(MamaSubscription subscription)
Method invoked when a sequence number gap is detected.
|
void |
onMsg(MamaSubscription subscription,
MamaMsg msg)
Invoked when a message arrives.
|
void |
onQuality(MamaSubscription subscription,
short quality,
short cause,
java.lang.Object platformInfo)
Invoked when a the quality of this subscription changes.
|
void |
onRecapRequest(MamaSubscription subscription)
Method invoked when a recap is requested upon detecting a
sequence number gap.
|
void onCreate(MamaSubscription subscription)
onMsg calls to be processed to be called before
the onCreate callback is processed.subscription - The subscription.void onError(MamaSubscription subscription, short wombatStatus, int platformError, java.lang.String subject, java.lang.Exception e)
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.
subscription - The subscription.wombatStatus - The wombat error code.platformError - Third party, platform specific messaging error.subject - The subject for NOT_ENTITLEDe - void onMsg(MamaSubscription subscription, MamaMsg msg)
subscription - the MamaSubscription.msg - The MamaMsg.void onQuality(MamaSubscription subscription, short quality, short cause, java.lang.Object platformInfo)
subscription - the MamaSubscription.quality - The new quality: one of the values in the MamaQuality class.cause - The cause of the data quality event.platformInfo - Info associated with the data quality event.
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 messagevoid onRecapRequest(MamaSubscription subscription)
subscription - the MamaSubscription.void onGap(MamaSubscription subscription)
subscription - the MamaSubscription.void onDestroy(MamaSubscription subscription)
subscription - The MamaSubscription.Copyright 2011 NYSE Technologies