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

io.api.etherscan.manager.IQueueManager Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package io.api.etherscan.manager;

/**
 * Queue manager to support API limits (EtherScan 5request\sec limit)
 * Managers grants turn if the limit is not exhausted
 * And resets queue each set period
 *
 * @author GoodforGod
 * @since 30.10.2018
 */
public interface IQueueManager {

    /**
     * Waits in queue for chance to take turn
     * @return is turn available
     */
    boolean takeTurn();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy