@Qualifier @Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD,PARAMETER,ANNOTATION_TYPE}) public @interface RegistryType
This can be used to obtain the respective scoped MetricRegistry
:
@Inject
@RegistryType(type=MetricRegistry.Type.BASE)
MetricRegistry baseRegistry;
MetricRegistry.Type
Modifier and Type | Optional Element and Description |
---|---|
MetricRegistry.Type |
type
The scope of the MetricRegistry.
|
public abstract MetricRegistry.Type type
MetricRegistry.Type
can be APPLICATION
, BASE
, or
VENDOR
.MetricRegistry.Type
Copyright © 2022. All rights reserved.