本文整理汇总了Java中org.springframework.analytics.metrics.AggregateCounterRepository类的典型用法代码示例。如果您正苦于以下问题:Java AggregateCounterRepository类的具体用法?Java AggregateCounterRepository怎么用?Java AggregateCounterRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AggregateCounterRepository类属于org.springframework.analytics.metrics包,在下文中一共展示了AggregateCounterRepository类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AggregateCounterController
import org.springframework.analytics.metrics.AggregateCounterRepository; //导入依赖的package包/类
public AggregateCounterController(AggregateCounterRepository repository) {
this.repository = repository;
}
示例2: aggregateCounterRepository
import org.springframework.analytics.metrics.AggregateCounterRepository; //导入依赖的package包/类
@Bean
public AggregateCounterRepository aggregateCounterRepository() {
return new RedisAggregateCounterRepository(redisConnectionFactory, retryOperations());
}
开发者ID:spring-cloud,项目名称:spring-cloud-stream-app-starters,代码行数:5,代码来源:AggregateCounterSinkStoreConfiguration.java
示例3: aggregateCounterRepository
import org.springframework.analytics.metrics.AggregateCounterRepository; //导入依赖的package包/类
@Bean
@ConditionalOnClass(AggregateCounterRepository.class)
public AggregateCounterRepository aggregateCounterRepository() {
return Mockito.mock(AggregateCounterRepository.class);
}
开发者ID:spring-cloud,项目名称:spring-cloud-stream-app-starters,代码行数:6,代码来源:AggregateCounterSinkTestConfiguration.java
示例4: aggregateCounterReader
import org.springframework.analytics.metrics.AggregateCounterRepository; //导入依赖的package包/类
@Bean
public AggregateCounterRepository aggregateCounterReader(RedisConnectionFactory redisConnectionFactory) {
return new InMemoryAggregateCounterRepository();
}
示例5: setUpOnce
import org.springframework.analytics.metrics.AggregateCounterRepository; //导入依赖的package包/类
@BeforeClass
public static void setUpOnce() {
repository = applicationContext.getBean(AggregateCounterRepository.class);
}
示例6: aggregateCounterReader
import org.springframework.analytics.metrics.AggregateCounterRepository; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean
public AggregateCounterRepository aggregateCounterReader(RedisConnectionFactory redisConnectionFactory) {
return new RedisAggregateCounterRepository(redisConnectionFactory, new RetryTemplate());
}
示例7: aggregateCounterController
import org.springframework.analytics.metrics.AggregateCounterRepository; //导入依赖的package包/类
@Bean
@ConditionalOnBean(AggregateCounterRepository.class)
public AggregateCounterController aggregateCounterController(AggregateCounterRepository repository) {
return new AggregateCounterController(repository);
}