/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/CircuitBreaker.java |
Parent Directory | Revision Log
Links to HEAD: | (view) (download) (annotate) |
Sticky Revision: |
Use generics to encapsulate returned value
FindBugs
Statistics should be added by composition instead of inheritance
switch to maven
move java components to java folder
Re-enable the old breaker constructors (but mark them as deprecated)
Switch entirely to BreakerConfig inits
Switch to BreakerConfig method this way it is possible to control the breaker dynamically
Expose more details about the current notifier
If the Notifier gets a reference to the CircuitBreaker itself instead of the circuitbreaker's name then the same notifier instance can easily be shared across several circuitbreakers
Support for async notifiers (and basic java notifier - needs debugging)
Refactor the function bodies of trip and retrip into one common function
Differentiate against a normal trip and a retrip from half-open back to open
I like this way better
Correct comment
don't call reset() initially - just set the correct state
Rename package
When doing a reset, make sure to also reset ClosedState's fail count
More tests
Narrow thrown from Throwable to Exception, Added a notifier that prints to system.out
added a few inspection functions
Make currentState volatile
Remove unused logger
Synchronisation fixes
Various cleanup
No reason for exposing elapsed time if you don't also have the timeout for comparison.
just use class.getName instead of overriding toString
Added notification code
Make some of the internal state readable
reset open timer before switching state
Comment
Comments
First CircuitBreaker impl.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
ViewVC Help | |
Powered by ViewVC 1.1.20 |