Package com.github.sonus21.rqueue.spring
Class NatsBackendCondition
java.lang.Object
com.github.sonus21.rqueue.spring.NatsBackendCondition
- All Implemented Interfaces:
org.springframework.context.annotation.Condition
public class NatsBackendCondition
extends Object
implements org.springframework.context.annotation.Condition
Activates the NATS backend wiring when
io.nats.client.JetStream is on the classpath
and rqueue.backend=nats is set in the environment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
-
Constructor Details
-
NatsBackendCondition
public NatsBackendCondition()
-
-
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
-