A 6KB Circuit Breaker For Java EE Released

breakr v0.0.2 was released.

...and now you can close the circuit:


@Singleton
@Interceptors(Breakr.class)
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
public class Brittle {

    @IgnoreCallsWhen(failures = 2,slowerThanMillis = 10)
    public void unstableAndSlow(){
    }

    @CloseCircuit
    public void reset() {}
}

breakr is available in maven central as 6KB, no dependency jar:


<dependency>
   <groupId>com.airhacks</groupId>
   <artifactId>breakr</artifactId>
   <version>0.0.2</version>
</dependency>

Also checkout https://github.com/AdamBien/porcupine for 16KB implementation of bulkheads and handshaking.

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 8, Java 9: Bootstrap, Effective, Architectures, Single Page Apps, Progressive Web Apps, HTML 5, ES 6, CSS 3 and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

Hi Adam,

Shouldn't be the circuit opened to interrupt current ? ;)

Regards
Emmanuel

Posted by Emmanuel on November 27, 2015 at 11:00 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License