Interface MeterRegistryConfigurer<T extends io.micrometer.core.instrument.MeterRegistry>

  • Type Parameters:
    T - the registry type to configure.
    All Known Implementing Classes:
    MicrometerMeterRegistryConfigurer
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface MeterRegistryConfigurer<T extends io.micrometer.core.instrument.MeterRegistry>
    Interface that is used to configure a specific type of MeterRegistry. Any component that implements this interface will be applied on the supported MeterRegistry during the ComponentFactory initialization.
    See Also:
    MeterRegistryFactory, MicrometerMeterRegistryConfigurer
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void apply​(T meterRegistry)
      Applies this configurer to the given meter registry.
      default boolean supports​(T meterRegistry)
      Checks whether this configurer supports the given meter registry type.
    • Method Detail

      • apply

        void apply​(T meterRegistry)
        Applies this configurer to the given meter registry.
        Parameters:
        meterRegistry - the MeterRegistry to configure.
      • supports

        default boolean supports​(T meterRegistry)
        Checks whether this configurer supports the given meter registry type.
        Parameters:
        meterRegistry - a MeterRegistry.
        Returns:
        boolean true if the meter registry is supported.