This client is the AMQP implementation of the job execution asynchronous API described here.
<dependency>
<groupId>com.decisionbrain</groupId>
<artifactId>spring-boot-starter-optimserver-amqp-client</artifactId>
<version>3.4.1</version>
<scope>compile</scope>
</dependency>
implementation "com.decisionbrain:spring-boot-starter-optimserver-amqp-client:3.4.1"
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);
}
}
2 beans are available in the AMQP implementation: