Spring AMQP (Async)

Overview

This client is the AMQP implementation of the job execution asynchronous API described here.

Maven users


<dependency>
    <groupId>com.decisionbrain</groupId>
    <artifactId>spring-boot-starter-optimserver-amqp-client</artifactId>
    <version>3.4.1</version>
    <scope>compile</scope>
</dependency>

Gradle users

implementation "com.decisionbrain:spring-boot-starter-optimserver-amqp-client:3.4.1"

Configuration

Since the implementation relies on the Spring RabbitMQ connector, the clients use the same configuation properties:

spring:
  rabbitmq:
    host: ...
    port: ...
    username: ...
    password: ...

The client is enabled by adding the @EnableOptimServerClient annotation to your SpringBoot Application


@SpringBootApplication
@EnableOptimServerClient
public class ApiAmqpClientApplication {
    public static void main(String[] args) {
        SpringApplication.run(ApiAmqpClientApplication.class, args);
    }
}

Available beans

2 beans are available in the AMQP implementation: