Interface IFloodFilter<T>

All Superinterfaces:
com.smartfoxserver.core.ICoreService, com.smartfoxserver.bitswarm.service.IService
All Known Implementing Classes:
SFSFloodFilter

public interface IFloodFilter<T> extends com.smartfoxserver.core.ICoreService
Configuration should be done via AdminTool > ZoneConfigurator > Flood Filter /** @internal
  • Method Details

    • setActive

      void setActive(boolean flag)
    • filterRequest

      void filterRequest(T reqType, User user) throws SFSFloodingException
      Throws:
      SFSFloodingException
    • addRequestFilter

      void addRequestFilter(T request, int reqPerSecond)
    • isRequestFiltered

      boolean isRequestFiltered(T request)
    • clearAllFilters

      void clearAllFilters()
    • getRequestTable

      Map<T,Integer> getRequestTable()
    • getBanDurationMinutes

      int getBanDurationMinutes()
    • setBanDurationMinutes

      void setBanDurationMinutes(int banDurationMinutes)
    • getMaxFloodingAttempts

      int getMaxFloodingAttempts()
    • setMaxFloodingAttempts

      void setMaxFloodingAttempts(int maxFloodingAttempts)
    • getSecondsBeforeBan

      int getSecondsBeforeBan()
    • setSecondsBeforeBan

      void setSecondsBeforeBan(int secondsBeforeBan)
    • isLogFloodingAttempts

      boolean isLogFloodingAttempts()
    • setLogFloodingAttempts

      void setLogFloodingAttempts(boolean logFloodingAttempts)
    • getBanMode

      BanMode getBanMode()
    • setBanMode

      void setBanMode(BanMode banMode)
    • getBanMessage

      String getBanMessage()
    • setBanMessage

      void setBanMessage(String banMessage)