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

io.nosqlbench.engine.api.activityapi.ratelimits.TokenPool Maven / Gradle / Ivy

Go to download

The engine API for nosqlbench; Provides the interfaces needed to build internal modules for the nosqlbench core engine

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.engine.api.activityapi.ratelimits;

public interface TokenPool {
    TokenPool apply(RateSpec rateSpec);

    double getBurstRatio();

    long takeUpTo(long amt);

    long blockAndTake();

    long blockAndTake(long tokens);

    long getWaitTime();

    long getWaitPool();

    long getActivePool();

    RateSpec getRateSpec();

    long restart();

    void start();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy