Package com.github.sonus21.rqueue.config
Class RedisBackendCondition
java.lang.Object
com.github.sonus21.rqueue.config.RedisBackendCondition
- All Implemented Interfaces:
org.springframework.context.annotation.Condition
public class RedisBackendCondition
extends Object
implements org.springframework.context.annotation.Condition
Spring
Condition that matches when the active rqueue backend is Backend.REDIS.
Reads the rqueue.backend property; absent or unparseable values default to REDIS so the
existing behavior is preserved.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(org.springframework.context.annotation.ConditionContext ctx, org.springframework.core.type.AnnotatedTypeMetadata md)
-
Constructor Details
-
RedisBackendCondition
public RedisBackendCondition()
-
-
Method Details
-
matches
public boolean matches(org.springframework.context.annotation.ConditionContext ctx, org.springframework.core.type.AnnotatedTypeMetadata md) - Specified by:
matchesin interfaceorg.springframework.context.annotation.Condition
-