Package marauroa.server.net.flood
Interface IFloodCheck
- All Known Implementing Classes:
FloodCheck
public interface IFloodCheck
Implement this interface to assert if an entry is flooding or not.
- Author:
- miguel
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isFlooding(FloodMeasure entry)
Returns true if with the information stored an entry implementation determines that there is a flood attack.void
onFlood(FloodMeasure entry)
Called by FloodValidator when the connection is found to be flooding.
-
Method Details
-
isFlooding
Returns true if with the information stored an entry implementation determines that there is a flood attack.- Parameters:
entry
- Flood measures to help us take a decision- Returns:
- true if there is a flood from this entry.
-
onFlood
Called by FloodValidator when the connection is found to be flooding.- Parameters:
entry
- the channel that is causing the flood.
-