Package org.eclipse.microprofile.metrics
Enum MetricRegistry.Type
- All Implemented Interfaces:
Serializable,Comparable<MetricRegistry.Type>
- Enclosing interface:
- MetricRegistry
Deprecated.
An enumeration representing the provided scopes of the MetricRegistry.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.As of release 5.0, please useMetricRegistry.APPLICATION_SCOPEwithRegistryScopeinstead.Deprecated.As of release 5.0, please useMetricRegistry.BASE_SCOPEwithRegistryScopeinstead.Deprecated.As of release 5.0, please useMetricRegistry.VENDOR_SCOPEwithRegistryScopeinstead. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Deprecated.Returns the name of the MetricRegistry scope.static MetricRegistry.TypeDeprecated.Returns the enum constant of this type with the specified name.static MetricRegistry.Type[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
APPLICATION
Deprecated.As of release 5.0, please useMetricRegistry.APPLICATION_SCOPEwithRegistryScopeinstead.The Application (default) scoped MetricRegistry. Any metric registered/accessed via CDI will use this MetricRegistry. -
BASE
Deprecated.As of release 5.0, please useMetricRegistry.BASE_SCOPEwithRegistryScopeinstead.The Base scoped MetricRegistry. This MetricRegistry will contain required metrics specified in the MicroProfile Metrics specification. -
VENDOR
Deprecated.As of release 5.0, please useMetricRegistry.VENDOR_SCOPEwithRegistryScopeinstead.The Vendor scoped MetricRegistry. This MetricRegistry will contain vendor provided metrics which may vary between different vendors.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Deprecated.Returns the name of the MetricRegistry scope.- Returns:
- the scope
-
MetricRegistry.APPLICATION_SCOPE,MetricRegistry.BASE_SCOPEorMetricRegistry.VENDOR_SCOPEwithRegistryScopeinstead.