com.tencent.polaris.ratelimit.client.flow.DurationBaseCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
package com.tencent.polaris.ratelimit.client.flow;
/**
* duration 对应的Window
*/
public class DurationBaseCallback {
/**
* duration
*/
private final int duration;
/**
* 限流窗口
*/
private final RateLimitWindow rateLimitWindow;
public DurationBaseCallback(int duration, RateLimitWindow rateLimitWindow) {
this.duration = duration;
this.rateLimitWindow = rateLimitWindow;
}
public int getDuration() {
return duration;
}
public RateLimitWindow getRateLimitWindow() {
return rateLimitWindow;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy