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

com.netflix.astyanax.connectionpool.RateLimiter Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
package com.netflix.astyanax.connectionpool;

/**
 * Very very simple interface for a rate limiter. The basic idea is that clients
 * will call check() to determine if an operation may be performed. The concrete
 * rate limiter will update its internal state for each call to check
 * 
 * @author elandau
 */
public interface RateLimiter {
    boolean check();

    boolean check(long currentTimeMillis);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy