protected SubscriptionMessage generateReplySubscriptionMessage ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "generateReplySubscriptionMessage" ) ; // Get the Message Handler for doing this operation. final SubscriptionMessageHandler messageHandler = iProxyHandler . getMessageHandler ( ) ; // Reset the message. messageHandler . resetReplySubscriptionMessage ( ) ; if ( iLocalSubscriptions . size ( ) > 0 ) // Add the local subscriptions addToMessage ( messageHandler , iLocalSubscriptions ) ; if ( iRemoteSubscriptions . size ( ) > 0 ) // Add the remote Subscriptions addToMessage ( messageHandler , iRemoteSubscriptions ) ; SubscriptionMessage message = messageHandler . getSubscriptionMessage ( ) ; // Add the message back into the pool iProxyHandler . addMessageHandler ( messageHandler ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "generateReplySubscriptionMessage" , message ) ; return message ; }
Generates the reply subscription message that should be sent to a the neighbor on the Bus who sent the request .