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

com.tencent.polaris.ratelimit.client.flow.DurationBaseCallback Maven / Gradle / Ivy

The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy