Class MetricRegistries


  • @ApplicationScoped
    public class MetricRegistries
    extends Object
    Author:
    hrupp
    • Constructor Detail

      • MetricRegistries

        public MetricRegistries()
    • Method Detail

      • getApplicationRegistry

        @Produces
        @Default
        @RegistryType(type=APPLICATION)
        @ApplicationScoped
        public org.eclipse.microprofile.metrics.MetricRegistry getApplicationRegistry()
      • getBaseRegistry

        @Produces
        @RegistryType(type=BASE)
        @ApplicationScoped
        public org.eclipse.microprofile.metrics.MetricRegistry getBaseRegistry()
      • getVendorRegistry

        @Produces
        @RegistryType(type=VENDOR)
        @ApplicationScoped
        public org.eclipse.microprofile.metrics.MetricRegistry getVendorRegistry()
      • get

        public static org.eclipse.microprofile.metrics.MetricRegistry get​(org.eclipse.microprofile.metrics.MetricRegistry.Type type)
      • cleanUp

        @PreDestroy
        public void cleanUp()
      • drop

        public static void drop​(org.eclipse.microprofile.metrics.MetricRegistry.Type type)
        Drops a particular registry. If a reference to the same registry type is requested later, a new empty registry will be created for that purpose.
        Parameters:
        type - Type of registry that should be dropped.
      • dropAll

        public static void dropAll()
        Drops all registries. If a reference to a registry is requested later, a new empty registry will be created for that purpose.