Package org.eclipse.microprofile.metrics
Enum Class MetricRegistry.Type
- All Implemented Interfaces:
Serializable
,Comparable<MetricRegistry.Type>
,Constable
- Enclosing interface:
- MetricRegistry
Deprecated.
An enumeration representing the provided scopes of the MetricRegistry.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.As of release 5.0, please useMetricRegistry.APPLICATION_SCOPE
withRegistryScope
instead.Deprecated.As of release 5.0, please useMetricRegistry.BASE_SCOPE
withRegistryScope
instead.Deprecated.As of release 5.0, please useMetricRegistry.VENDOR_SCOPE
withRegistryScope
instead. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Deprecated.Returns the name of the MetricRegistry scope.static MetricRegistry.Type
Deprecated.Returns the enum constant of this class with the specified name.static MetricRegistry.Type[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLICATION
Deprecated.As of release 5.0, please useMetricRegistry.APPLICATION_SCOPE
withRegistryScope
instead.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_SCOPE
withRegistryScope
instead.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_SCOPE
withRegistryScope
instead.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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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_SCOPE
orMetricRegistry.VENDOR_SCOPE
withRegistryScope
instead.