本文整理匯總了Java中com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory類的典型用法代碼示例。如果您正苦於以下問題:Java HystrixPropertiesFactory類的具體用法?Java HystrixPropertiesFactory怎麽用?Java HystrixPropertiesFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
HystrixPropertiesFactory類屬於com.netflix.hystrix.strategy.properties包,在下文中一共展示了HystrixPropertiesFactory類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: HystrixKafkaCircuitBreaker
import com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory; //導入依賴的package包/類
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();
}
示例2: after
import com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory; //導入依賴的package包/類
@After
public void after() {
ConfigurationManager.getConfigInstance().clear();
HystrixPropertiesFactory.reset();
}
示例3: getCommandProperties
import com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory; //導入依賴的package包/類
public static HystrixCommandProperties getCommandProperties(TenacityPropertyKey key) {
return HystrixPropertiesFactory.getCommandProperties(key, null);
}
示例4: getThreadpoolProperties
import com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory; //導入依賴的package包/類
public static HystrixThreadPoolProperties getThreadpoolProperties(TenacityPropertyKey key) {
return HystrixPropertiesFactory.getThreadPoolProperties(key, null);
}