io.ryos.rhino.sdk.annotations.Throttle Maven / Gradle / Ivy
package io.ryos.rhino.sdk.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Annotation is used to limit the number of requests that the framework is allowed to produce
* within the duration.
*
*/
@Retention(RetentionPolicy.RUNTIME)
public @interface Throttle {
/**
* Duration in minutes in which the throttling is active.
*
*
* @return Throttling duration.
*/
int durationInMins() default -1;
/**
* Max. number of requests.
*
* @return Maximum number of requests.
*/
int rps() default 100;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy