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

nl.vpro.api.client.utils.NpoApiRateLimiter Maven / Gradle / Ivy

package nl.vpro.api.client.utils;

import javax.inject.Inject;
import javax.inject.Named;

/**
 * @author Michiel Meeuwissen
 * @since 1.8
 */
@Named
public class NpoApiRateLimiter extends AbstractRateLimiter {

    @Inject
    @Override
    public void setBaseRate(@Named("npo-api.baserate") double baseRate) {
        super.setBaseRate(baseRate);
    }

    @Inject
    @Override
    public void setMinRate(@Named("npo-api.minrate") double minRate) {
        super.setMinRate(minRate);
    }

    public NpoApiRateLimiter() {

    }
    @lombok.Builder
    private NpoApiRateLimiter(double baseRate, double minRate) {
        setBaseRate(baseRate);
        setMinRate(minRate);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy