public static class HystrixCircuitBreaker.Factory
extends java.lang.Object
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
static HystrixCircuitBreaker |
getInstance(HystrixCommandKey key)
Get the
HystrixCircuitBreaker instance for a given HystrixCommandKey or null if none exists. |
static HystrixCircuitBreaker |
getInstance(HystrixCommandKey key,
HystrixCommandGroupKey group,
HystrixCommandProperties properties,
HystrixCommandMetrics metrics)
Get the
HystrixCircuitBreaker instance for a given HystrixCommandKey . |
public static HystrixCircuitBreaker getInstance(HystrixCommandKey key, HystrixCommandGroupKey group, HystrixCommandProperties properties, HystrixCommandMetrics metrics)
HystrixCircuitBreaker
instance for a given HystrixCommandKey
.
This is thread-safe and ensures only 1 HystrixCircuitBreaker
per HystrixCommandKey
.
key
- HystrixCommandKey
of HystrixCommand
instance requesting the HystrixCircuitBreaker
group
- Pass-thru to HystrixCircuitBreaker
properties
- Pass-thru to HystrixCircuitBreaker
metrics
- Pass-thru to HystrixCircuitBreaker
HystrixCircuitBreaker
for HystrixCommandKey
public static HystrixCircuitBreaker getInstance(HystrixCommandKey key)
HystrixCircuitBreaker
instance for a given HystrixCommandKey
or null if none exists.key
- HystrixCommandKey
of HystrixCommand
instance requesting the HystrixCircuitBreaker
HystrixCircuitBreaker
for HystrixCommandKey