Spring Boot Starter for disruptor
Positioning · Capabilities · Dependency · Quick Start · Configuration · Versions · Build · License
Current Version:
2.0.1-SNAPSHOT
JDK Baseline:1.8
Group ID:io.github.easy4j
Artifact ID:disruptor-spring-boot-starter
License:Apache License 2.0
disruptor-spring-boot-starter is a Spring Boot starter that integrates disruptor for applications using disruptor. It provides auto-configuration, property binding, and ready-to-use beans so that applications can consume disruptor capabilities with minimal setup.
| Dimension | Description |
|---|---|
| Type | Spring Boot Starter |
| Consumers | Spring Boot applications using disruptor |
| Core Capabilities | auto-configuration, property binding, ready-to-use beans for disruptor |
| JDK | 1.8 |
| Coordinates | io.github.easy4j:disruptor-spring-boot-starter:2.0.1-SNAPSHOT |
| Config Prefix | disruptor |
| Capability | Status | Description |
|---|---|---|
| Auto-configuration | ✅ Stable | Registers disruptor beans automatically |
| Property Binding | ✅ Stable | Binds disruptor.* to DisruptorProperties |
WaitStrategy bean |
✅ Stable | Auto-registered via DisruptorAutoConfiguration, RingBufferAutoConfiguration |
| Dependency | Minimum | Evidence |
|---|---|---|
| JDK | 1.8 |
pom.xml |
| Spring Boot | 2.6.15 |
pom.xml parent |
| Maven | 3.6+ |
Maven Enforcer |
The starter auto-configures the following beans:
| Bean | Condition | Missing Behavior |
|---|---|---|
WaitStrategy |
classpath + property | not created |
ThreadFactory |
classpath + property | not created |
DisruptorEventOneArgTranslator |
classpath + property | not created |
DisruptorTemplate |
classpath + property | not created |
DisruptorEventAwareProcessor |
classpath + property | not created |
WaitStrategy |
classpath + property | not created |
Auto-configuration registration:
META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports(Spring Boot 2.7+ / 3.x / 4.x)META-INF/spring.factories(Spring Boot 2.x legacy)
<dependency>
<groupId>io.github.easy4j</groupId>
<artifactId>disruptor-spring-boot-starter</artifactId>
<version>2.0.1-SNAPSHOT</version>
</dependency>This starter depends on the following components (managed by ddd4j BOM):
<dependency>
<groupId>io.github.easy4j</groupId>
<artifactId>disruptor-extension</artifactId>
</dependency>Add the dependency above to your pom.xml.
disruptor:
enabled: true@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}Then inject the auto-configured bean in your code:
@Autowired
private WaitStrategy waitStrategy;disruptor
| Property | Type | Default | Required | Description | Sensitive |
|---|---|---|---|---|---|
disruptor.enabled |
boolean | true |
No | Enable the starter | No |
| Branch | JDK | Spring Boot | Component Version | Status |
|---|---|---|---|---|
2.3.x / 2.7.x |
8+ |
2.3.x / 2.7.x | 1.0.x |
Maintenance |
3.0.x ~ 3.5.x |
17 |
3.x | 2.0.x |
Maintenance |
4.0.x / 4.1.x |
17+ |
4.x | 3.0.x |
Active |
mvn clean verify
mvn -pl disruptor-spring-boot-starter -am test| Symptom | Diagnosis | Resolution |
|---|---|---|
| Bean not created | Check auto-configuration report | Verify disruptor.enabled=true and classpath |
ClassNotFoundException |
Missing dependency | Add the required module |
| Version conflict | mvn dependency:tree |
Use BOM for version alignment |
- Fork the repository.
- Create a feature branch.
- Run
mvn clean verifybefore submitting. - Submit a pull request.
This project is licensed under the Apache License, Version 2.0.