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 Details

    • NatsBackendCondition

      public NatsBackendCondition()
  • Method Details

    • matches

      public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      matches in interface org.springframework.context.annotation.Condition