io.nosqlbench.engine.api.activityapi.ratelimits.TokenPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engine-api Show documentation
Show all versions of engine-api Show documentation
The engine API for nosqlbench;
Provides the interfaces needed to build internal modules for the
nosqlbench core engine
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