Closed ggiamarchi closed 9 years ago
In class org.fishwife.jrugged.CircuitBreaker this can be done in trip() method. openCount.getAndIncrement() should be perform only if previous state was not OPEN.
org.fishwife.jrugged.CircuitBreaker
trip()
openCount.getAndIncrement()
OPEN
Closing this issue as there is an open pull request for it.
In class
org.fishwife.jrugged.CircuitBreaker
this can be done intrip()
method.openCount.getAndIncrement()
should be perform only if previous state was notOPEN
.