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