com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory Java Examples
The following examples show how to use
com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HystrixKafkaCircuitBreaker.java From nakadi with MIT License | 6 votes |
public HystrixKafkaCircuitBreaker(final String brokerId) { commandKey = HystrixCommandKey.Factory.asKey(brokerId); commandProperties = HystrixPropertiesFactory.getCommandProperties(commandKey, null); threadPoolKey = HystrixThreadPoolKey.Factory.asKey(brokerId); hystrixCommandMetrics = HystrixCommandMetrics.getInstance( commandKey, HYSTRIX_CMD_GROUP_KEY, threadPoolKey, commandProperties); circuitBreaker = HystrixCircuitBreaker.Factory.getInstance( commandKey, HYSTRIX_CMD_GROUP_KEY, commandProperties, hystrixCommandMetrics); concurrentExecutionCount = new AtomicInteger(); }
Example #2
Source File: HystrixPluginDataHandler.java From soul with Apache License 2.0 | 4 votes |
@Override public void handlerRule(final RuleData ruleData) { HystrixPropertiesFactory.reset(); }
Example #3
Source File: TenacityObservableCommand.java From tenacity with Apache License 2.0 | 4 votes |
public static HystrixCommandProperties getCommandProperties(TenacityPropertyKey key) { return HystrixPropertiesFactory.getCommandProperties(key, null); }
Example #4
Source File: TenacityObservableCommand.java From tenacity with Apache License 2.0 | 4 votes |
public HystrixCommandProperties getCommandProperties() { return HystrixPropertiesFactory.getCommandProperties(getCommandKey(), null); }
Example #5
Source File: TenacityObservableCommand.java From tenacity with Apache License 2.0 | 4 votes |
public static HystrixThreadPoolProperties getThreadpoolProperties(TenacityPropertyKey key) { return HystrixPropertiesFactory.getThreadPoolProperties(key, null); }
Example #6
Source File: TenacityObservableCommand.java From tenacity with Apache License 2.0 | 4 votes |
public HystrixThreadPoolProperties getThreadpoolProperties() { return HystrixPropertiesFactory.getThreadPoolProperties(getThreadPoolKey(), null); }
Example #7
Source File: TenacityCommand.java From tenacity with Apache License 2.0 | 4 votes |
public static HystrixCommandProperties getCommandProperties(TenacityPropertyKey key) { return HystrixPropertiesFactory.getCommandProperties(key, null); }
Example #8
Source File: TenacityCommand.java From tenacity with Apache License 2.0 | 4 votes |
public HystrixCommandProperties getCommandProperties() { return HystrixPropertiesFactory.getCommandProperties(getCommandKey(), null); }
Example #9
Source File: TenacityCommand.java From tenacity with Apache License 2.0 | 4 votes |
public static HystrixThreadPoolProperties getThreadpoolProperties(TenacityPropertyKey key) { return HystrixPropertiesFactory.getThreadPoolProperties(key, null); }
Example #10
Source File: TenacityCommand.java From tenacity with Apache License 2.0 | 4 votes |
public HystrixThreadPoolProperties getThreadpoolProperties() { return HystrixPropertiesFactory.getThreadPoolProperties(getThreadPoolKey(), null); }