public class SmoothWarmingUpRateLimiterFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<com.google.common.util.concurrent.RateLimiter>
Constructor and Description |
---|
SmoothWarmingUpRateLimiterFactoryBean() |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.RateLimiter |
getObject() |
Class<com.google.common.util.concurrent.RateLimiter> |
getObjectType() |
double |
getPermitsPerSecond() |
TimeUnit |
getUnit() |
long |
getWarmupPeriod() |
boolean |
isSingleton() |
void |
setPermitsPerSecond(double permitsPerSecond) |
void |
setUnit(TimeUnit unit) |
void |
setWarmupPeriod(long warmupPeriod) |
public SmoothWarmingUpRateLimiterFactoryBean()
public long getWarmupPeriod()
public void setWarmupPeriod(long warmupPeriod)
public TimeUnit getUnit()
public void setUnit(TimeUnit unit)
public double getPermitsPerSecond()
public void setPermitsPerSecond(double permitsPerSecond)
public com.google.common.util.concurrent.RateLimiter getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<com.google.common.util.concurrent.RateLimiter>
Exception
public Class<com.google.common.util.concurrent.RateLimiter> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<com.google.common.util.concurrent.RateLimiter>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<com.google.common.util.concurrent.RateLimiter>
Copyright © 2006–2018 TinyGroup. All rights reserved.