xuzhenbao opened a new pull request, #839:
URL: https://github.com/apache/celix/pull/839

   The PR is used to resolve the issue #776. However, there are some 
adjustments to the implementation.
   
   I have defined a configuration property 
`CELIX_RSA_IMPORTED_SERVICE_RANKING_OFFSETS`. This property is used to specify 
the offset values for the imported service ranking. The value of this property 
is a comma-separated list of `<config type>=<ranking offset>`. It allows user 
to configure the ranking of imported services based on the configuration type 
of service. For example, if the user wants to set a higher ranking for imported 
services with the configuration type "celix.remote.admin.shm" than the imported 
services with the configuration type "celix.remote.admin.http", and the 
imported services rankings are lower than the local services(The default 
ranking of local service is 0.), you can set the property as 
follows:"celix.remote.admin.shm=-1,celix.remote.admin.http=-2".
   
   In addition, in order to ensure that the imported services that are being 
called can complete their operations before they are removed, when the import 
registration is closed, I used the synchronous method to unregister the 
imported service. The relevant modification can be found in 
`rsa_json_rpc_proxy_impl.c`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to