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 Object
implements org.springframework.context.annotation.Condition
Checks 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
-
Constructor Details
-
MetricsEnabled
public MetricsEnabled()
-
-
Method Details
-
matches
public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata) - Specified by:
matchesin interfaceorg.springframework.context.annotation.Condition
-