All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.giffing.bucket4j.spring.boot.starter.context.RateLimitCheck Maven / Gradle / Ivy

The newest version!
package com.giffing.bucket4j.spring.boot.starter.context;


import com.giffing.bucket4j.spring.boot.starter.context.properties.RateLimit;

/**
 * Used to check if the rate limit should be performed independently of the servlet|webflux|gateway request filter
 */
@FunctionalInterface
public interface RateLimitCheck {

    /**
     * @param params        parameter information
     * @param mainRateLimit overwrites the rate limit configuration from the properties
     * @return null if no rate limit should be performed. (maybe skipped or shouldn't be executed).
     */
    RateLimitResultWrapper rateLimit(ExpressionParams params, RateLimit mainRateLimit);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy