Package com.github.sonus21.rqueue.spring
Class MetricsEnabled
- java.lang.Object
-
- com.github.sonus21.rqueue.spring.MetricsEnabled
-
- All Implemented Interfaces:
org.springframework.context.annotation.Condition
public class MetricsEnabled extends java.lang.Object implements org.springframework.context.annotation.ConditionChecks whether MeterRegistry bean is present it or not. if MeterRegistry bean is founds then it's assumed that Metric feature is enables. It's essential to restrict the bean creation otherwise can lead to error in bootstrap process.
-
-
Constructor Summary
Constructors Constructor Description MetricsEnabled()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
-