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) { |
@Deprecated |
64 |
|
public CircuitBreaker(String name, int threshold, int timeoutMS) { |
65 |
this(name, new StaticConfig(threshold, timeoutMS) ); |
this(name, new StaticConfig(threshold, timeoutMS) ); |
66 |
}*/ |
} |
67 |
|
|
68 |
public CircuitBreaker(String name, BreakerConfig config) { |
public CircuitBreaker(String name, BreakerConfig config) { |
69 |
closed.setThreshold(config); |
closed.setThreshold(config); |