Java 类com.google.common.util.concurrent.SmoothRateLimiter.SmoothWarmingUp 实例源码

项目:guava-mock    文件:RateLimiter.java   
@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;
}
项目:googles-monorepo-demo    文件:RateLimiter.java   
@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;
}
项目:codebuff    文件:RateLimiter.java   
@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;
}
项目:codebuff    文件:RateLimiter.java   
@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;
}
项目:codebuff    文件:RateLimiter.java   
@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;
}
项目:codebuff    文件:RateLimiter.java   
@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;
}
项目:codebuff    文件:RateLimiter.java   
@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;
}
项目:guava-libraries    文件:RateLimiter.java   
@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;
}
项目:guava    文件:RateLimiter.java   
@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;
}
项目:guava    文件:RateLimiter.java   
@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;
}
项目:cnGuava    文件:RateLimiter.java   
@VisibleForTesting
static RateLimiter create(
        SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
    RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit);
    rateLimiter.setRate(permitsPerSecond);
    return rateLimiter;
}
项目:org.openntf.domino    文件:RateLimiter.java   
@VisibleForTesting
static RateLimiter create(
    SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
  RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit);
  rateLimiter.setRate(permitsPerSecond);
  return rateLimiter;
}