Skip to content

A production-ready circuit breaker library implementing the Circuit Breaker Pattern using the State Pattern.

Notifications You must be signed in to change notification settings

trongtoannguyen/circuit4J

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circuit Breaker Java

Maven Central License

A production-ready Circuit Breaker pattern implementation for Java using the State Pattern.

Features

  • ✅ 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

Installation

Maven

<dependency>
    <groupId>io.github.trongtoannguyen</groupId>
    <artifactId>circuit4J</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

implementation 'io.github.trongtoannguyen:circuit4J:1.0.0'

License

Apache License 2.0 - see LICENSE file

About

A production-ready circuit breaker library implementing the Circuit Breaker Pattern using the State Pattern.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages