sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Boston <>
Subject MetricsService question.
Date Thu, 19 Jan 2017 09:18:32 GMT

Is the intention that [1] should use the same approach as [2] so that there
is 1 MetricsRegistry per JVM ?

ie Check for a MetricsRegistry as a service, and if not present create one,
so that there is only 1 which reporters can report on.

I am wondering how this will be made thread safe, as IIRC multiple threads
could perform the operation in independent bundles and there are no shared
objects to synchronise on. Perhaps the risk of that is so low it doesn't
matter, however, at scale, if its could happen, it will.

Best Regards



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message