public static class RateLimiterConfigurationProperties.LimiterProperties
extends java.lang.Object
RateLimiterConfig instances.| Constructor and Description |
|---|
LimiterProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getEventConsumerBufferSize() |
java.lang.Integer |
getLimitForPeriod()
Configures the permissions limit for refresh period.
|
java.lang.Integer |
getLimitRefreshPeriodInMillis()
Configures the period of limit refresh.
|
java.lang.Boolean |
getRegisterHealthIndicator() |
java.lang.Boolean |
getSubscribeForEvents() |
java.lang.Integer |
getTimeoutInMillis()
Configures the default wait for permission duration.
|
void |
setEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize) |
void |
setLimitForPeriod(java.lang.Integer limitForPeriod)
Configures the permissions limit for refresh period.
|
void |
setLimitRefreshPeriodInMillis(java.lang.Integer limitRefreshPeriodInMillis)
Configures the period of limit refresh.
|
void |
setRegisterHealthIndicator(java.lang.Boolean registerHealthIndicator) |
void |
setSubscribeForEvents(java.lang.Boolean subscribeForEvents) |
void |
setTimeoutInMillis(java.lang.Integer timeoutInMillis)
Configures the default wait for permission duration.
|
public java.lang.Integer getLimitForPeriod()
RateLimiterConfig.limitRefreshPeriod value.
Default value is 50.public void setLimitForPeriod(java.lang.Integer limitForPeriod)
RateLimiterConfig.limitRefreshPeriod value.
Default value is 50.limitForPeriod - the permissions limit for refresh periodpublic java.lang.Integer getLimitRefreshPeriodInMillis()
RateLimiterConfig.limitForPeriod value.
Default value is 500 nanoseconds.public void setLimitRefreshPeriodInMillis(java.lang.Integer limitRefreshPeriodInMillis)
RateLimiterConfig.limitForPeriod value.
Default value is 500 nanoseconds.limitRefreshPeriodInMillis - the period of limit refreshpublic java.lang.Integer getTimeoutInMillis()
public void setTimeoutInMillis(java.lang.Integer timeoutInMillis)
timeoutInMillis - wait for permission durationpublic java.lang.Boolean getSubscribeForEvents()
public void setSubscribeForEvents(java.lang.Boolean subscribeForEvents)
public java.lang.Integer getEventConsumerBufferSize()
public void setEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize)
public java.lang.Boolean getRegisterHealthIndicator()
public void setRegisterHealthIndicator(java.lang.Boolean registerHealthIndicator)