RateLimiterPluginConfigBuilder
Builder for configuring the KresilRateLimiterPlugin.
Properties
Link copied to clipboard
Link copied to clipboard
Configures the default duration a request will be placed in the queue if the request is rate-limited. After this duration, the request will be rejected. Should be non-negative.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private var interceptPhase: <Error class: unknown class><suspend (<Error class: unknown class>) -> Unit>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Sets the weight of a call for rate limiting purposes. The weight is used to determine how many permits a call consumes.
Link copied to clipboard
Sets the function to determine if a request should be excluded from rate limiting.
Link copied to clipboard
fun interceptPhase(interceptPhase: <Error class: unknown class><suspend (<Error class: unknown class>) -> Unit>)
Sets the phase in the application pipeline where rate limiting is applied.
Link copied to clipboard
Sets the function to resolve the key for rate limiting from the application call.
Link copied to clipboard
Sets the callback to handle requests that are rejected due to rate limiting.
Link copied to clipboard
Sets the callback to handle successful requests.