|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.peermanager.utils.PeerMessageLimiter
public class PeerMessageLimiter
Handles incoming peer message counting/timing/stats in order to catch and block abusive peers.
Constructor Summary | |
---|---|
PeerMessageLimiter()
|
Method Summary | |
---|---|
boolean |
countIncomingMessage(java.lang.String message_id,
int max_counts,
int time_limit_ms)
Add the reception of the given message to time-limited count. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PeerMessageLimiter()
Method Detail |
---|
public boolean countIncomingMessage(java.lang.String message_id, int max_counts, int time_limit_ms)
message_id
- message to countmax_counts
- max counts allowed within the given time limittime_limit_ms
- time in ms that the count limiting applies
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |