Class SimpleMeterRegistryFactory

  • All Implemented Interfaces:
    MeterRegistryFactory<io.micrometer.core.instrument.simple.SimpleMeterRegistry>

    public class SimpleMeterRegistryFactory
    extends java.lang.Object
    implements MeterRegistryFactory<io.micrometer.core.instrument.simple.SimpleMeterRegistry>
    This class implements the MetricsBuilder interface with SimpleMeterRegistry as its type. SimpleMeterRegistry is a type of MeterRegistry, designed for testing functionality that does not require a backend monitoring system.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micrometer.core.instrument.simple.SimpleMeterRegistry registry​(java.util.Map<java.lang.String,​java.lang.Object> config)
      Constructs a SimpleMeterRegistry.
      java.lang.String type()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleMeterRegistryFactory

        public SimpleMeterRegistryFactory()
    • Method Detail

      • registry

        public io.micrometer.core.instrument.simple.SimpleMeterRegistry registry​(java.util.Map<java.lang.String,​java.lang.Object> config)
        Constructs a SimpleMeterRegistry. This method doesn't use the given map parameter, as SimpleMeterRegistry does not require configuration options.
        Specified by:
        registry in interface MeterRegistryFactory<io.micrometer.core.instrument.simple.SimpleMeterRegistry>
        Parameters:
        config - The map intended to contain the configurations. This parameter is not used.
        Returns:
        A new SimpleMeterRegistry instance.
      • type

        public java.lang.String type()
        Specified by:
        type in interface MeterRegistryFactory<io.micrometer.core.instrument.simple.SimpleMeterRegistry>