本文整理汇总了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;
}
示例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);
}
}
示例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;
}
示例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);
}
示例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);
}