Interface MetricRegistrationListener


  • public interface MetricRegistrationListener
    Allows to be notified when a new Metric is registered with a particular MetricRegistryImpl.
    Since:
    5.202
    Author:
    Jan Bernitt
    • Method Detail

      • onRegistration

        void onRegistration​(org.eclipse.microprofile.metrics.MetricID registered,
                            String scope)
        Notifies the listener when new Metric is registered.
        Parameters:
        registered - ID of the newly registered Metric
        scope - associated where the new Metric was registered with