mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 22:16:03 +00:00
docs: Updated documentation on comments on DefaultCircuitBreaker args (#2135)
This commit is contained in:
1 parent
2b2947950c
commit
4a6d652dce
2 files changed
+4
-5
No files matched your search
+4
-4
@@ -45,10 +45,10 @@ public class DefaultCircuitBreaker implements CircuitBreaker {
|
|||||||
* Constructor to create an instance of Circuit Breaker.
|
* Constructor to create an instance of Circuit Breaker.
|
||||||
*
|
*
|
||||||
* @param timeout Timeout for the API request. Not necessary for this simple example
|
* @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
|
* @param failureThreshold Number of failures we receive from the depended on service before
|
||||||
* state to 'OPEN'
|
* changing state to 'OPEN'
|
||||||
* @param retryTimePeriod Time period after which a new request is made to remote service for
|
* @param retryTimePeriod Time, in nanoseconds, period after which a new request is made to
|
||||||
* status check.
|
* remote service for status check.
|
||||||
*/
|
*/
|
||||||
DefaultCircuitBreaker(RemoteService serviceToCall, long timeout, int failureThreshold,
|
DefaultCircuitBreaker(RemoteService serviceToCall, long timeout, int failureThreshold,
|
||||||
long retryTimePeriod) {
|
long retryTimePeriod) {
|
||||||
|
|||||||
-1
@@ -26,7 +26,6 @@ package com.iluwatar.circuitbreaker;
|
|||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
import java.rmi.Remote;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user