Skip to content

Commit 4a6d652

Browse files
authored
docs: Updated documentation on comments on DefaultCircuitBreaker args (iluwatar#2135)
1 parent 2b29479 commit 4a6d652

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

circuit-breaker/src/main/java/com/iluwatar/circuitbreaker/DefaultCircuitBreaker.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public class DefaultCircuitBreaker implements CircuitBreaker {
4545
* Constructor to create an instance of Circuit Breaker.
4646
*
4747
* @param timeout Timeout for the API request. Not necessary for this simple example
48-
* @param failureThreshold Number of failures we receive from the depended service before changing
49-
* state to 'OPEN'
50-
* @param retryTimePeriod Time period after which a new request is made to remote service for
51-
* status check.
48+
* @param failureThreshold Number of failures we receive from the depended on service before
49+
* changing state to 'OPEN'
50+
* @param retryTimePeriod Time, in nanoseconds, period after which a new request is made to
51+
* remote service for status check.
5252
*/
5353
DefaultCircuitBreaker(RemoteService serviceToCall, long timeout, int failureThreshold,
5454
long retryTimePeriod) {

circuit-breaker/src/test/java/com/iluwatar/circuitbreaker/DefaultCircuitBreakerTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import static org.junit.jupiter.api.Assertions.assertEquals;
2828

29-
import java.rmi.Remote;
3029
import org.junit.jupiter.api.Test;
3130

3231
/**

0 commit comments

Comments
 (0)