本文整理汇总了Java中com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp类的典型用法代码示例。如果您正苦于以下问题:Java SmoothWarmingUp类的具体用法?Java SmoothWarmingUp怎么用?Java SmoothWarmingUp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SmoothWarmingUp类属于com.google.common.util.concurrent.SmoothRateLimiter包,在下文中一共展示了SmoothWarmingUp类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: create
import com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp; //导入依赖的package包/类
@VisibleForTesting
static RateLimiter create(
SleepingStopwatch stopwatch,
double permitsPerSecond,
long warmupPeriod,
TimeUnit unit,
double coldFactor) {
RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit, coldFactor);
rateLimiter.setRate(permitsPerSecond);
return rateLimiter;
}
开发者ID:zugzug90,项目名称:guava-mock,代码行数:12,代码来源:RateLimiter.java
示例2: create
import com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp; //导入依赖的package包/类
@VisibleForTesting
static RateLimiter create(
SleepingStopwatch stopwatch,
double permitsPerSecond,
long warmupPeriod,
TimeUnit unit,
double coldFactor) {
RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit, coldFactor);
rateLimiter.setRate(permitsPerSecond);
return rateLimiter;
}
开发者ID:antlr,项目名称:codebuff,代码行数:12,代码来源:RateLimiter.java
示例3: create
import com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp; //导入依赖的package包/类
@VisibleForTesting
static RateLimiter create(
SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit,
double coldFactor) {
RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit, coldFactor);
rateLimiter.setRate(permitsPerSecond);
return rateLimiter;
}
开发者ID:sander120786,项目名称:guava-libraries,代码行数:9,代码来源:RateLimiter.java
示例4: create
import com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp; //导入依赖的package包/类
@VisibleForTesting
static RateLimiter create(
double permitsPerSecond,
long warmupPeriod,
TimeUnit unit,
double coldFactor,
SleepingStopwatch stopwatch) {
RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit, coldFactor);
rateLimiter.setRate(permitsPerSecond);
return rateLimiter;
}
开发者ID:google,项目名称:guava,代码行数:12,代码来源:RateLimiter.java
示例5: create
import com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp; //导入依赖的package包/类
@VisibleForTesting
static RateLimiter create(
SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit);
rateLimiter.setRate(permitsPerSecond);
return rateLimiter;
}
开发者ID:ketao1989,项目名称:cnGuava,代码行数:8,代码来源:RateLimiter.java
示例6: create
import com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp; //导入依赖的package包/类
@VisibleForTesting
static RateLimiter create(
SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit);
rateLimiter.setRate(permitsPerSecond);
return rateLimiter;
}
开发者ID:OpenNTF,项目名称:org.openntf.domino,代码行数:8,代码来源:RateLimiter.java
注:本文中的com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论