Interface IFloodFilter<T>

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

    public interface IFloodFilter<T>
    extends com.smartfoxserver.v2.core.ICoreService
    • Method Detail

      • setActive

        void setActive​(boolean flag)
      • addRequestFilter

        void addRequestFilter​(T request,
                              int reqPerSecond)
      • isRequestFiltered

        boolean isRequestFiltered​(T request)
      • clearAllFilters

        void clearAllFilters()
      • getRequestTable

        java.util.Map<T,​java.lang.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)
      • setBanMode

        void setBanMode​(BanMode banMode)
      • getBanMessage

        java.lang.String getBanMessage()
      • setBanMessage

        void setBanMessage​(java.lang.String banMessage)