protected void resetCreateSubscriptionMessage ( MESubscription subscription , boolean isLocalBus ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetCreateSubscriptionMessage" , new Object [ ] { subscription , new Boolean ( isLocalBus ) } ) ; // Reset the state reset ( ) ; // Indicate that this is a create message iSubscriptionMessage . setSubscriptionMessageType ( SubscriptionMessageType . CREATE ) ; // Add the subscription related information. iTopics . add ( subscription . getTopic ( ) ) ; if ( isLocalBus ) { //see defect 267686: //local bus subscriptions expect the subscribing ME's //detination uuid to be set in the iTopicSpaces field iTopicSpaces . add ( subscription . getTopicSpaceUuid ( ) . toString ( ) ) ; } else { //see defect 267686: //foreign bus subscriptions need to set the subscribers's topic space name. //This is because the messages sent to this topic over the link //will need to have a routing destination set, which requires //this value. iTopicSpaces . add ( subscription . getTopicSpaceName ( ) . toString ( ) ) ; } iTopicSpaceMappings . add ( subscription . getForeignTSName ( ) ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "resetCreateSubscriptionMessage" ) ; }
Method to reset the Subscription message object and reinitialise it as a create proxy subscription message