当前位置: 首页>>代码示例>>Java>>正文


Java HystrixCollapserProperties类代码示例

本文整理汇总了Java中com.netflix.hystrix.HystrixCollapserProperties的典型用法代码示例。如果您正苦于以下问题:Java HystrixCollapserProperties类的具体用法?Java HystrixCollapserProperties怎么用?Java HystrixCollapserProperties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


HystrixCollapserProperties类属于com.netflix.hystrix包,在下文中一共展示了HystrixCollapserProperties类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: QueriesObservableCollapser

import com.netflix.hystrix.HystrixCollapserProperties; //导入依赖的package包/类
QueriesObservableCollapser(QueryRequest query, Keyspace keyspace) {
    super(Setter
            .withCollapserKey(hystrixCollapserKey(keyspace))
            .andCollapserPropertiesDefaults(
                    HystrixCollapserProperties.Setter()
                            .withRequestCacheEnabled(false)
                            .withTimerDelayInMilliseconds(maxDelay)
            )
    );

    this.query = query;
    this.keyspace = keyspace;
}
 
开发者ID:graknlabs,项目名称:grakn,代码行数:14,代码来源:BatchExecutorClient.java

示例2: getCollapserProperties

import com.netflix.hystrix.HystrixCollapserProperties; //导入依赖的package包/类
@Override
public HystrixCollapserProperties getCollapserProperties(HystrixCollapserKey qualifiedCollapserKey, com.netflix.hystrix.HystrixCollapserProperties.Setter builder) {
	if (MultiConfigId.hasMultiSourceId(qualifiedCollapserKey)) {
		return strategies.get(MultiConfigId.readFrom(qualifiedCollapserKey))
				.getCollapserProperties(MultiConfigId.decode(qualifiedCollapserKey), builder);
	} else {
		return defaultStrategy.getCollapserProperties(qualifiedCollapserKey, builder);
	}
}
 
开发者ID:AvanzaBank,项目名称:astrix,代码行数:10,代码来源:MultiPropertiesStrategyDispatcher.java

示例3: HystrixPrometheusMetricsPublisherCollapser

import com.netflix.hystrix.HystrixCollapserProperties; //导入依赖的package包/类
public HystrixPrometheusMetricsPublisherCollapser(
        HystrixMetricsCollector collector, HystrixCollapserKey key, HystrixCollapserMetrics metrics,
        HystrixCollapserProperties properties, boolean exportProperties,
        HystrixMetricsPublisherCollapser delegate) {

    this.metrics = metrics;
    this.collector = collector;
    this.properties = properties;
    this.exportProperties = exportProperties;
    this.labels = new TreeMap<String, String>();
    labels.put("collapser_name", key.name());
    this.delegate = delegate;
}
 
开发者ID:ahus1,项目名称:prometheus-hystrix,代码行数:14,代码来源:HystrixPrometheusMetricsPublisherCollapser.java

示例4: getCollapserProperties

import com.netflix.hystrix.HystrixCollapserProperties; //导入依赖的package包/类
@Override
public HystrixCollapserProperties getCollapserProperties(HystrixCollapserKey collapserKey,
					com.netflix.hystrix.HystrixCollapserProperties.Setter builder) {
	return HystrixPropertiesStrategyDefault.getInstance()
										   .getCollapserProperties(collapserKey, builder);
}
 
开发者ID:AvanzaBank,项目名称:astrix,代码行数:7,代码来源:PropertiesStrategyDispatcher.java

示例5: getCollapserProperties

import com.netflix.hystrix.HystrixCollapserProperties; //导入依赖的package包/类
@Override
public HystrixCollapserProperties getCollapserProperties(HystrixCollapserKey collapserKey,
		com.netflix.hystrix.HystrixCollapserProperties.Setter builder) {
	return super.getCollapserProperties(collapserKey, builder);
}
 
开发者ID:AvanzaBank,项目名称:astrix,代码行数:6,代码来源:BeanConfigurationPropertiesStrategy.java


注:本文中的com.netflix.hystrix.HystrixCollapserProperties类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。