Package | Description |
---|---|
dev.failsafe |
APIs for performing failsafe executions.
|
Modifier and Type | Method and Description |
---|---|
static <R> RateLimiterBuilder<R> |
RateLimiter.builder(RateLimiterConfig<R> config)
Creates a new RateLimiterBuilder that will be based on the
config . |
static <R> RateLimiterBuilder<R> |
RateLimiter.burstyBuilder(long maxExecutions,
Duration period)
|
static <R> RateLimiterBuilder<R> |
RateLimiter.smoothBuilder(Duration maxRate)
Returns a smooth
RateLimiterBuilder for the maxRate , which controls how frequently an execution is
permitted. |
static <R> RateLimiterBuilder<R> |
RateLimiter.smoothBuilder(long maxExecutions,
Duration period)
Returns a smooth
RateLimiterBuilder for the maxExecutions and period , which control how
frequently an execution is permitted. |
RateLimiterBuilder<R> |
RateLimiterBuilder.withMaxWaitTime(Duration maxWaitTime)
Configures the
maxWaitTime to wait for permits to be available. |
Copyright © 2022. All rights reserved.