public static class RateLimiterConfigurationProperties.InstanceProperties
extends java.lang.Object
RateLimiterConfig instances.| Constructor and Description |
|---|
InstanceProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getAllowHealthIndicatorToFail() |
java.lang.String |
getBaseConfig()
Gets the shared configuration name.
|
java.lang.Integer |
getEventConsumerBufferSize() |
java.lang.Integer |
getLimitForPeriod()
Configures the permissions limit for refresh period.
|
java.time.Duration |
getLimitRefreshPeriod()
Configures the period of limit refresh.
|
java.lang.Boolean |
getRegisterHealthIndicator() |
java.lang.Boolean |
getSubscribeForEvents() |
java.time.Duration |
getTimeoutDuration()
Configures the default wait for permission duration.
|
java.lang.Boolean |
getWritableStackTraceEnabled()
Returns if we should enable writable stack traces or not.
|
RateLimiterConfigurationProperties.InstanceProperties |
setAllowHealthIndicatorToFail(java.lang.Boolean allowHealthIndicatorToFail)
When set to true, it allows the health indicator to go to a failed (DOWN) status.
|
RateLimiterConfigurationProperties.InstanceProperties |
setBaseConfig(java.lang.String baseConfig)
Sets the shared configuration name.
|
RateLimiterConfigurationProperties.InstanceProperties |
setEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize) |
RateLimiterConfigurationProperties.InstanceProperties |
setLimitForPeriod(java.lang.Integer limitForPeriod)
Configures the permissions limit for refresh period.
|
RateLimiterConfigurationProperties.InstanceProperties |
setLimitRefreshPeriod(java.time.Duration limitRefreshPeriod)
Configures the period of limit refresh.
|
RateLimiterConfigurationProperties.InstanceProperties |
setRegisterHealthIndicator(java.lang.Boolean registerHealthIndicator) |
RateLimiterConfigurationProperties.InstanceProperties |
setSubscribeForEvents(java.lang.Boolean subscribeForEvents) |
RateLimiterConfigurationProperties.InstanceProperties |
setTimeoutDuration(java.time.Duration timeout)
Configures the default wait for permission duration.
|
RateLimiterConfigurationProperties.InstanceProperties |
setWritableStackTraceEnabled(java.lang.Boolean writableStackTraceEnabled)
Sets if we should enable writable stack traces or not.
|
@Nullable public java.lang.Integer getLimitForPeriod()
RateLimiterConfig.getLimitRefreshPeriod()
value. Default value is 50.public RateLimiterConfigurationProperties.InstanceProperties setLimitForPeriod(java.lang.Integer limitForPeriod)
RateLimiterConfig.getLimitRefreshPeriod()
value. Default value is 50.limitForPeriod - the permissions limit for refresh period@Nullable public java.time.Duration getLimitRefreshPeriod()
RateLimiterConfig.getLimitForPeriod() value. Default value
is 500 nanoseconds.public RateLimiterConfigurationProperties.InstanceProperties setLimitRefreshPeriod(java.time.Duration limitRefreshPeriod)
RateLimiterConfig.getLimitForPeriod() value. Default value
is 500 nanoseconds.limitRefreshPeriod - the period of limit refresh@Nullable public java.time.Duration getTimeoutDuration()
public RateLimiterConfigurationProperties.InstanceProperties setTimeoutDuration(java.time.Duration timeout)
timeout - wait for permission durationpublic java.lang.Boolean getWritableStackTraceEnabled()
public RateLimiterConfigurationProperties.InstanceProperties setWritableStackTraceEnabled(java.lang.Boolean writableStackTraceEnabled)
writableStackTraceEnabled - The flag to enable writable stack traces.public java.lang.Boolean getSubscribeForEvents()
public RateLimiterConfigurationProperties.InstanceProperties setSubscribeForEvents(java.lang.Boolean subscribeForEvents)
public java.lang.Integer getEventConsumerBufferSize()
public RateLimiterConfigurationProperties.InstanceProperties setEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize)
@Nullable public java.lang.Boolean getAllowHealthIndicatorToFail()
setAllowHealthIndicatorToFail(Boolean)public RateLimiterConfigurationProperties.InstanceProperties setAllowHealthIndicatorToFail(java.lang.Boolean allowHealthIndicatorToFail)
allowHealthIndicatorToFail - flag to control if the health indicator is allowed to
failpublic java.lang.Boolean getRegisterHealthIndicator()
public RateLimiterConfigurationProperties.InstanceProperties setRegisterHealthIndicator(java.lang.Boolean registerHealthIndicator)
@Nullable public java.lang.String getBaseConfig()
public RateLimiterConfigurationProperties.InstanceProperties setBaseConfig(java.lang.String baseConfig)
baseConfig - The shared configuration name.