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 Limiter
public boolean increaseAndCheckLimit(String ip, String key, int intervalInSeconds, int limit, Runnable limitReachedOnce)
increaseAndCheckLimit
in interface Limiter
Copyright © 2018. All rights reserved.