/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/CircuitBreaker.java
ViewVC logotype

Log of /miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/CircuitBreaker.java

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 3212 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 28 09:34:47 2017 UTC (6 years, 4 months ago) by torben
File length: 5631 byte(s)
Diff to previous 2572
Use generics to encapsulate returned value

Revision 2572 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 9 09:28:14 2015 UTC (8 years, 11 months ago) by torben
File length: 5819 byte(s)
Diff to previous 2569
FindBugs

Revision 2569 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 9 08:55:10 2015 UTC (8 years, 11 months ago) by torben
File length: 5785 byte(s)
Diff to previous 2449
Statistics should be added by composition instead of inheritance

Revision 2449 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 20 08:58:46 2015 UTC (9 years, 2 months ago) by torben
File length: 5126 byte(s)
Diff to previous 2448
switch to maven

Revision 2448 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 20 08:52:49 2015 UTC (9 years, 2 months ago) by torben
Original Path: miscJava/CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 5126 byte(s)
Diff to previous 1376
move java components to java folder

Revision 1376 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 23 10:43:40 2011 UTC (13 years ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 5126 byte(s)
Diff to previous 1314
Re-enable the old breaker constructors (but mark them as deprecated)

Revision 1314 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 19 17:12:27 2011 UTC (13 years, 1 month ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 5117 byte(s)
Diff to previous 1306
Switch entirely to BreakerConfig inits

Revision 1306 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 19 15:22:09 2011 UTC (13 years, 1 month ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 5113 byte(s)
Diff to previous 1289
Switch to BreakerConfig method this way it is possible to control the breaker dynamically

Revision 1289 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 11 16:05:10 2011 UTC (13 years, 1 month ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 4891 byte(s)
Diff to previous 1161
Expose more details about the current notifier

Revision 1161 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 4 17:36:43 2010 UTC (13 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 4827 byte(s)
Diff to previous 1148
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

Revision 1148 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 1 11:40:30 2010 UTC (13 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 4827 byte(s)
Diff to previous 871
Support for async notifiers (and basic java notifier - needs debugging)

Revision 871 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 21 17:16:46 2010 UTC (13 years, 11 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 4408 byte(s)
Diff to previous 864
Refactor the function bodies of trip and retrip into one common function

Revision 864 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 20 21:54:53 2010 UTC (13 years, 11 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 4495 byte(s)
Diff to previous 627
Differentiate against a normal trip and a retrip from half-open back to open

Revision 627 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 8 10:12:59 2010 UTC (14 years, 2 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 4084 byte(s)
Diff to previous 626
I like this way better

Revision 626 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 8 10:01:25 2010 UTC (14 years, 2 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 4032 byte(s)
Diff to previous 625
Correct comment

Revision 625 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 8 10:00:55 2010 UTC (14 years, 2 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 4030 byte(s)
Diff to previous 467
don't call reset() initially - just set the correct state

Revision 467 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 22 06:01:35 2009 UTC (14 years, 6 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java
File length: 3922 byte(s)
Copied from: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java revision 456
Diff to previous 456
Rename package

Revision 456 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 20 20:42:36 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3922 byte(s)
Diff to previous 452
When doing a reset, make sure to also reset ClosedState's fail count

Revision 452 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 20 10:47:36 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3887 byte(s)
Diff to previous 450
More tests

Revision 450 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 20 10:26:50 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3887 byte(s)
Diff to previous 447
Narrow thrown from Throwable to Exception,

Added a notifier that prints to system.out

Revision 447 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 19 13:57:42 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3887 byte(s)
Diff to previous 443
added a few inspection functions

Revision 443 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 18 07:57:02 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3731 byte(s)
Diff to previous 427
Make currentState volatile


Revision 427 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 9 06:56:21 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3722 byte(s)
Diff to previous 426
Remove unused logger

Revision 426 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 9 06:45:40 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3823 byte(s)
Diff to previous 424
Synchronisation fixes

Revision 424 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 8 20:39:39 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3566 byte(s)
Diff to previous 413
Various cleanup

Revision 413 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 7 17:56:13 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3548 byte(s)
Diff to previous 412
No reason for exposing elapsed time if you don't also have the timeout for comparison.

Revision 412 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 7 16:42:10 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3471 byte(s)
Diff to previous 409
just use class.getName instead of overriding toString

Revision 409 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 7 07:07:00 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3461 byte(s)
Diff to previous 397
Added notification code

Revision 397 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 6 05:22:40 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 3092 byte(s)
Diff to previous 396
Make some of the internal state readable

Revision 396 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 6 04:59:03 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 2569 byte(s)
Diff to previous 395
reset open timer before switching state

Revision 395 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 5 19:54:25 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 2568 byte(s)
Diff to previous 394
Comment

Revision 394 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 5 19:46:15 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 2499 byte(s)
Diff to previous 393
Comments

Revision 393 - (view) (download) (annotate) - [select for diffs]
Added Mon Oct 5 19:44:40 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java
File length: 2377 byte(s)
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.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.20