public interface IRateLimiter
| Modifier and Type | Method and Description |
|---|---|
int |
getMillisecondsBetweenLocks() |
boolean |
lock()
Call this BEFORE executing code that needs to be rate limited.
|
void |
unlock()
Call this AFTER executing code that needs to be rate limited.
|
boolean lock()
void unlock()
int getMillisecondsBetweenLocks()
Copyright © 2017. All rights reserved.