use of com.hazelcast.internal.metrics.ExcludedMetricTargets in project hazelcast by hazelcast.
the class SourceMetadata method getTypeExcludedTarget.
private Collection<MetricTarget> getTypeExcludedTarget(Class clazz) {
Collection<MetricTarget> typeExclusions;
ExcludedMetricTargets targetsAnnotation = (ExcludedMetricTargets) clazz.getAnnotation(ExcludedMetricTargets.class);
if (targetsAnnotation != null) {
typeExclusions = unmodifiableList(asList(targetsAnnotation.value()));
} else {
typeExclusions = emptyList();
}
return typeExclusions;
}
Aggregations