Class RegistrationThrottling

    • Field Detail

      • limit

        @ConfigField(desc="Limit of allowed account registrations for IP in specified period")
        protected java.lang.Integer limit
      • period

        @ConfigField(desc="Period for which limit is set")
        protected java.time.Duration period
    • Constructor Detail

      • RegistrationThrottling

        public RegistrationThrottling()
    • Method Detail

      • startFor

        public void startFor​(Kernel kernel)
      • stopFor

        public void stopFor​(Kernel kernel)
      • checkLimits

        protected boolean checkLimits​(XMPPIOService service)
      • cleanUp

        protected void cleanUp​(java.util.List<java.lang.Long> registrationTimes)
      • cleanUpFromTimer

        protected void cleanUpFromTimer()
      • scheduleCleanUpIfNeeded

        protected void scheduleCleanUpIfNeeded()