mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 14:58:39 +00:00
docs: Updated documentation on comments on DefaultCircuitBreaker args (#2135)
This commit is contained in:
committed by
GitHub
parent
2b2947950c
commit
4a6d652dce
+4
-4
@@ -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) {
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user