A production-ready Circuit Breaker pattern implementation for Java using the State Pattern.
- ✅ Thread-safe state management (Closed, Open, Half-Open)
- ✅ Synchronous and asynchronous execution support
- ✅ Configurable failure thresholds and timeouts
- ✅ Automatic circuit reset with configurable intervals
- ✅ Event listener interface for monitoring
- ✅ Zero runtime dependencies
- ✅ Java 11+ compatible
<dependency>
<groupId>io.github.trongtoannguyen</groupId>
<artifactId>circuit4J</artifactId>
<version>1.0.0</version>
</dependency>implementation 'io.github.trongtoannguyen:circuit4J:1.0.0'
Apache License 2.0 - see LICENSE file