Package com.wombat.mama
Interface MamaBasicWildCardSubscriptionCallback
-
public interface MamaBasicWildCardSubscriptionCallback
- Author:
- ldelaney
- See Also:
MamaBasicSubscription
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCreate(MamaBasicSubscription subscription)
Method invoked when subscription creation is complete.void
onDestroy(MamaBasicSubscription subscription)
void
onError(MamaBasicSubscription subscription, short wombatStatus, int platformError, java.lang.String subject)
Invoked if an error occurs during prior to subscription creation or if the subscription receives a message for an unentitled subject.void
onMsg(MamaBasicSubscription subscription, MamaMsg msg, java.lang.String topic)
Invoked when a message arrives.
-
-
-
Method Detail
-
onCreate
void onCreate(MamaBasicSubscription 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 foronMsg
calls to be processed to be called before theonCreate
callback is processed.- Parameters:
subscription
- The subscription.
-
onError
void onError(MamaBasicSubscription subscription, short wombatStatus, int platformError, java.lang.String subject)
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.- Parameters:
subscription
- The subscription.wombatStatus
- The wombat error code.platformError
- Third party, platform specific messaging error.subject
- The subject for NOT_ENTITLED
-
onMsg
void onMsg(MamaBasicSubscription subscription, MamaMsg msg, java.lang.String topic)
Invoked when a message arrives.- Parameters:
subscription
- theMamaBasicSubscription
.msg
- The MamaMsg.
-
onDestroy
void onDestroy(MamaBasicSubscription subscription)
-
-