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 Elements
    Modifier and Type
    Optional Element
    Description
    com.github.sonus21.rqueue.config.Backend
    Backend to wire.
  • Element Details

    • backend

      com.github.sonus21.rqueue.config.Backend backend
      Backend to wire. Defaults to Backend.REDIS. Set to Backend.NATS to import the NATS / JetStream listener configuration. The rqueue.backend property is independently read by RqueueConfig and remains the source of truth for the runtime backend; this attribute controls only which @Configuration class is pulled into the context.
      Default:
      REDIS