Top Description Methods
org.eclipse.microprofile.metrics.annotation

public @Interface RegistryType

extends Annotation
Annotations
@Deprecated
@Qualifier
@Documented
@Retention:RUNTIME
@Target:METHOD, FIELD, PARAMETER, ANNOTATION_TYPE
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, org.eclipse.microprofile.metrics.MetricRegistry, jakarta.inject.Qualifier

Deprecated

As of rlease 5.0, please use RegistryScope instead

Qualifies the type of Metric Registry to inject.

This can be used to obtain the respective scoped MetricRegistry:


     @Inject
     @RegistryType(type=MetricRegistry.Type.BASE)
     MetricRegistry baseRegistry;

Author
Raymond Lam
See Also
org.eclipse.microprofile.metrics.MetricRegistry.Type

Method Summary

Modifier and TypeMethod and Description
public MetricRegistry.Type

Returns:

Returns the scope of the MetricRegistry. The MetricRegistry.Type can be APPLICATION, BASE, or VENDOR.
type
()
References Deprecated MetricRegistry.Type is deprecated or references (maybe indirectly) at least one deprecated element.

The scope of the MetricRegistry.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

typeback to summary
public MetricRegistry.Type type()

References Deprecated

MetricRegistry.Type is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

The scope of the MetricRegistry.

Returns:MetricRegistry.Type

Returns the scope of the MetricRegistry. The MetricRegistry.Type can be APPLICATION, BASE, or VENDOR.

See Also
org.eclipse.microprofile.metrics.MetricRegistry.Type