docs: Updated documentation on comments on DefaultCircuitBreaker args (#2135)

This commit is contained in:
Bipin Kumar Chaurasia
2022-10-30 21:41:28 +05:30
committed by GitHub
parent 2b2947950c
commit 4a6d652dce
2 changed files with 4 additions and 5 deletions
@@ -45,10 +45,10 @@ public class DefaultCircuitBreaker implements CircuitBreaker {
* Constructor to create an instance of Circuit Breaker.
*
* @param timeout Timeout for the API request. Not necessary for this simple example
* @param failureThreshold Number of failures we receive from the depended service before changing
* state to 'OPEN'
* @param retryTimePeriod Time period after which a new request is made to remote service for
* status check.
* @param failureThreshold Number of failures we receive from the depended on service before
* changing state to 'OPEN'
* @param retryTimePeriod Time, in nanoseconds, period after which a new request is made to
* remote service for status check.
*/
DefaultCircuitBreaker(RemoteService serviceToCall, long timeout, int failureThreshold,
long retryTimePeriod) {
@@ -26,7 +26,6 @@ package com.iluwatar.circuitbreaker;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.rmi.Remote;
import org.junit.jupiter.api.Test;
/**