@Extensible
public interface RateLimiter
| Modifier and Type | Interface and Description |
|---|---|
static class |
RateLimiter.Operation |
static class |
RateLimiter.Outcome |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOperationAuthorized(RateLimiter.Operation operation,
String context) |
void |
recordOperationOutcome(RateLimiter.Operation operation,
String context,
RateLimiter.Outcome outcome) |
void checkOperationAuthorized(RateLimiter.Operation operation, String context) throws RateLimitExceededException
operation - context - RateLimitExceededException - if the operation is rate-limited for the
particular context. The context must be unique within the
operation (for example, a unique ID or username).void recordOperationOutcome(RateLimiter.Operation operation, String context, RateLimiter.Outcome outcome)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.