Formatting fixes
This commit is contained in:
parent
34febec65f
commit
450c33db64
@ -16,14 +16,14 @@ public class ConnectionThrottle
|
|||||||
|
|
||||||
public ConnectionThrottle(int throttleTime, int throttleLimit)
|
public ConnectionThrottle(int throttleTime, int throttleLimit)
|
||||||
{
|
{
|
||||||
this(Ticker.systemTicker(), throttleTime, throttleLimit);
|
this( Ticker.systemTicker(), throttleTime, throttleLimit );
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
ConnectionThrottle(Ticker ticker, int throttleTime, int throttleLimit)
|
ConnectionThrottle(Ticker ticker, int throttleTime, int throttleLimit)
|
||||||
{
|
{
|
||||||
this.throttle = CacheBuilder.newBuilder()
|
this.throttle = CacheBuilder.newBuilder()
|
||||||
.ticker(ticker)
|
.ticker( ticker )
|
||||||
.concurrencyLevel( Runtime.getRuntime().availableProcessors() )
|
.concurrencyLevel( Runtime.getRuntime().availableProcessors() )
|
||||||
.initialCapacity( 100 )
|
.initialCapacity( 100 )
|
||||||
.expireAfterWrite( throttleTime, TimeUnit.MILLISECONDS )
|
.expireAfterWrite( throttleTime, TimeUnit.MILLISECONDS )
|
||||||
|
Loading…
Reference in New Issue
Block a user