| Constructor and Description |
|---|
RedisLimiter() |
| Modifier and Type | Method and Description |
|---|---|
void |
block(String ipAddress) |
boolean |
increaseAndCheckLimit(String ip,
String key,
int intervalInSeconds,
int limit,
Runnable limitReachedOnce) |
boolean |
isIPBLacklisted(String ip) |
void |
unblock(String ipAddress) |
public boolean isIPBLacklisted(String ip)
isIPBLacklisted in interface Limiterpublic boolean increaseAndCheckLimit(String ip, String key, int intervalInSeconds, int limit, Runnable limitReachedOnce)
increaseAndCheckLimit in interface LimiterCopyright © 2018. All rights reserved.