This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new e53d4c52d Javadoc
e53d4c52d is described below
commit e53d4c52d3717aa70e1c6216a59a1f6c767ec72b
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Oct 7 10:35:19 2023 -0400
Javadoc
---
.../lang3/concurrent/EventCountCircuitBreaker.java | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git
a/src/main/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreaker.java
b/src/main/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreaker.java
index 632396f09..5c9f44b0b 100644
---
a/src/main/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreaker.java
+++
b/src/main/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreaker.java
@@ -255,9 +255,12 @@ public class EventCountCircuitBreaker extends
AbstractCircuitBreaker<Integer> {
}
/**
- * {@inheritDoc} This implementation checks the internal event counter
against the
+ * {@inheritDoc}
+ * <p>
+ * This implementation checks the internal event counter against the
* threshold values and the check intervals. This may cause a state change
of this
* circuit breaker.
+ * </p>
*/
@Override
public boolean checkState() {
@@ -285,10 +288,13 @@ public class EventCountCircuitBreaker extends
AbstractCircuitBreaker<Integer> {
}
/**
- * {@inheritDoc} This circuit breaker may close itself again if the number
of events
+ * {@inheritDoc}
+ * <p>
+ * This circuit breaker may close itself again if the number of events
* received during a check interval goes below the closing threshold. If
this circuit
* breaker is already open, this method has no effect, except that a new
check
* interval is started.
+ * </p>
*/
@Override
public void open() {
@@ -297,10 +303,13 @@ public class EventCountCircuitBreaker extends
AbstractCircuitBreaker<Integer> {
}
/**
- * {@inheritDoc} A new check interval is started. If too many events are
received in
+ * {@inheritDoc}
+ * <p>
+ * A new check interval is started. If too many events are received in
* this interval, the circuit breaker changes again to state open. If this
circuit
* breaker is already closed, this method has no effect, except that a new
check
* interval is started.
+ * </p>
*/
@Override
public void close() {
@@ -468,7 +477,7 @@ public class EventCountCircuitBreaker extends
AbstractCircuitBreaker<Integer> {
* @return the updated instance
*/
public CheckIntervalData increment(final int delta) {
- return (delta == 0) ? this : new CheckIntervalData(getEventCount()
+ delta,
+ return delta == 0 ? this : new CheckIntervalData(getEventCount() +
delta,
getCheckIntervalStart());
}
}