當前位置: 首頁>>代碼示例>>Java>>正文


Java HystrixPropertiesFactory類代碼示例

本文整理匯總了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();
}
 
開發者ID:zalando,項目名稱:nakadi,代碼行數:17,代碼來源:HystrixKafkaCircuitBreaker.java

示例2: after

import com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory; //導入依賴的package包/類
@After
public void after() {
	ConfigurationManager.getConfigInstance().clear();
	HystrixPropertiesFactory.reset();
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-netflix,代碼行數:6,代碼來源:OkHttpRibbonCommandFactoryTest.java

示例3: getCommandProperties

import com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory; //導入依賴的package包/類
public static HystrixCommandProperties getCommandProperties(TenacityPropertyKey key) {
    return HystrixPropertiesFactory.getCommandProperties(key, null);
}
 
開發者ID:yammer,項目名稱:tenacity,代碼行數:4,代碼來源:TenacityObservableCommand.java

示例4: getThreadpoolProperties

import com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory; //導入依賴的package包/類
public static HystrixThreadPoolProperties getThreadpoolProperties(TenacityPropertyKey key) {
    return HystrixPropertiesFactory.getThreadPoolProperties(key, null);
}
 
開發者ID:yammer,項目名稱:tenacity,代碼行數:4,代碼來源:TenacityObservableCommand.java


注:本文中的com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。