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

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

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



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

	/**
	 * @param request the request information object
	 * @param response the response information object
	 * 
	 * @return null if no rate limit should be performed. (maybe skipped or shouldn't be executed).
	 */
	RateLimitResultWrapper rateLimit(R request, P response);
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy