Formatting fixes
This commit is contained in:
parent
34febec65f
commit
450c33db64
@ -14,10 +14,10 @@
|
|||||||
|
|
||||||
<!-- See http://checkstyle.sourceforge.net/config_misc.html -->
|
<!-- See http://checkstyle.sourceforge.net/config_misc.html -->
|
||||||
<module name="RegexpSingleline">
|
<module name="RegexpSingleline">
|
||||||
<property name="format" value="\s+$"/>
|
<property name="format" value="\s+$"/>
|
||||||
<property name="minimum" value="0"/>
|
<property name="minimum" value="0"/>
|
||||||
<property name="maximum" value="0"/>
|
<property name="maximum" value="0"/>
|
||||||
<property name="message" value="Line has trailing spaces."/>
|
<property name="message" value="Line has trailing spaces."/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<module name="TreeWalker">
|
<module name="TreeWalker">
|
||||||
|
@ -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