Class SemaphoreRequestQueueManager
java.lang.Object
io.goodforgod.api.etherscan.manager.impl.SemaphoreRequestQueueManager
- All Implemented Interfaces:
RequestQueueManager,AutoCloseable
public final class SemaphoreRequestQueueManager
extends Object
implements RequestQueueManager, AutoCloseable
Queue Semaphore implementation with size and reset time as params
- Since:
- 30.10.2018
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SemaphoreRequestQueueManager
-
-
Method Details
-
takeTurn
public void takeTurn()Description copied from interface:RequestQueueManagerWaits in queue for chance to take turn- Specified by:
takeTurnin interfaceRequestQueueManager
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-