@ThreadSafe public class ThrottlingFilterConfig extends Object
ThrottlingFilter.| Modifier and Type | Field and Description |
|---|---|
static String |
PATTERNS_DEFAULT
Default patterns list filename.
|
| Constructor and Description |
|---|
ThrottlingFilterConfig(javax.servlet.FilterConfig filterConfig) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlwaysBanParam() |
String |
getAlwaysThrottleParam() |
Duration |
getBanDuration() |
String |
getEnableBanIfHeader() |
String |
getEnableThrottlingIfHeader() |
int |
getErrorBucketCapacity() |
int |
getErrorBucketRefillAmount() |
Duration |
getErrorBucketRefillPeriod() |
int |
getMaxStateSize() |
String |
getRegexPatternsFile() |
Duration |
getRequestDurationThreshold() |
Duration |
getStateExpiration() |
int |
getThrottleBucketCapacity() |
int |
getThrottleBucketRefillAmount() |
Duration |
getThrottleBucketRefillPeriod() |
Duration |
getTimeBucketCapacity() |
Duration |
getTimeBucketRefillAmount() |
Duration |
getTimeBucketRefillPeriod() |
boolean |
isFilterEnabled() |
public static final String PATTERNS_DEFAULT
public ThrottlingFilterConfig(javax.servlet.FilterConfig filterConfig)
public Duration getRequestDurationThreshold()
public Duration getTimeBucketCapacity()
public Duration getTimeBucketRefillAmount()
public Duration getTimeBucketRefillPeriod()
public int getErrorBucketCapacity()
public int getErrorBucketRefillAmount()
public Duration getErrorBucketRefillPeriod()
public int getThrottleBucketCapacity()
public int getThrottleBucketRefillAmount()
public Duration getThrottleBucketRefillPeriod()
public Duration getBanDuration()
public int getMaxStateSize()
public Duration getStateExpiration()
public String getEnableThrottlingIfHeader()
public String getEnableBanIfHeader()
public String getAlwaysThrottleParam()
public String getAlwaysBanParam()
public boolean isFilterEnabled()
public String getRegexPatternsFile()
Copyright © 2019. All rights reserved.