Class NoOpRateLimiter
java.lang.Object
org.apache.polaris.service.ratelimiter.NoOpRateLimiter
- All Implemented Interfaces:
RateLimiter
@Identifier("no-op")
@ApplicationScoped
public class NoOpRateLimiter
extends Object
implements RateLimiter
Rate limiter that always allows the request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis signifies that a request is being made.
-
Constructor Details
-
NoOpRateLimiter
public NoOpRateLimiter()
-
-
Method Details
-
canProceed
public boolean canProceed()Description copied from interface:RateLimiterThis signifies that a request is being made. That is, the rate limiter should count the request at this point.- Specified by:
canProceedin interfaceRateLimiter- Returns:
- Whether the request is allowed to proceed by the rate limiter
-