Spring SSE (Async)

Overview

This client is Spring connector the SSE implementation of the job execution asynchronous API described here.

Maven users


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

Gradle users

implementation "com.decisionbrain:spring-boot-starter-optimserver-sse-client:3.5.0"

Configuration

optim-server:
  url: https://master-host/
  keycloak:
    url:
    realm: decisionbrain
    clientId: optimserver
    user: optimserver
    password: optimserver

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


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

Available beans

1 bean is available in the SSE implementation: JobExecutionAsyncApi