60 |
private ExecutorService executor = null; |
private ExecutorService executor = null; |
61 |
private Notifier notifier = new NullNotifier(); |
private Notifier notifier = new NullNotifier(); |
62 |
|
|
63 |
public CircuitBreaker(String name, int threshold, int timeoutMS) { |
/*public CircuitBreaker(String name, int threshold, int timeoutMS) { |
64 |
this(name, new StaticConfig(threshold, timeoutMS) ); |
this(name, new StaticConfig(threshold, timeoutMS) ); |
65 |
} |
}*/ |
66 |
|
|
67 |
public CircuitBreaker(String name, BreakerConfig config) { |
public CircuitBreaker(String name, BreakerConfig config) { |
68 |
closed.setThreshold(config); |
closed.setThreshold(config); |