Package com.github.sonus21.rqueue.spring
Annotation Interface EnableRqueue
@Target(TYPE)
@Retention(RUNTIME)
@Import(RqueueBackendImportSelector.class)
public @interface EnableRqueue
Auto-configure Rqueue when
RedisConnectionFactory (or, when backend() is Backend.NATS, an Connection-derived
MessageBroker) is available. All other beans are created automatically; further
customization happens through SimpleRqueueListenerContainerFactory or by directly defining
the beans created in RqueueListenerConfig.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptioncom.github.sonus21.rqueue.config.BackendBackend to wire.
-
Element Details
-
backend
com.github.sonus21.rqueue.config.Backend backendBackend to wire. Defaults toBackend.REDIS. Set toBackend.NATSto import the NATS / JetStream listener configuration. Therqueue.backendproperty is independently read byRqueueConfigand remains the source of truth for the runtime backend; this attribute controls only which@Configurationclass is pulled into the context.- Default:
- REDIS
-