mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 22:16:03 +00:00
1 parent
5fd5840df7
commit
a143af638c
1 file changed
+1
-1
+1
-1
@@ -38,7 +38,7 @@ public class DefaultCircuitBreaker implements CircuitBreaker {
|
|||||||
int failureCount;
|
int failureCount;
|
||||||
private final int failureThreshold;
|
private final int failureThreshold;
|
||||||
private State state;
|
private State state;
|
||||||
private final long futureTime = 1000 * 1000 * 1000 * 1000;
|
private final long futureTime = 1000L * 1000 * 1000 * 1000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor to create an instance of Circuit Breaker.
|
* Constructor to create an instance of Circuit Breaker.
|
||||||
|
|||||||
Reference in new issue
Block a user