Package tigase.server.xmppclient
Class RegistrationThrottling
java.lang.Object
tigase.server.xmppclient.RegistrationThrottling
- All Implemented Interfaces:
UnregisterAware
@Bean(name="registration-throttling",
parent=Kernel.class,
active=false,
exportable=true)
public class RegistrationThrottling
extends Object
implements UnregisterAware
Created by andrzej on 19.11.2016.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method called before bean unregister.protected boolean
checkLimits
(XMPPIOService service) protected boolean
checkLimits
(XMPPIOService service, Packet packet) protected void
protected void
protected void
void
void
-
Field Details
-
ID
- See Also:
-
limit
@ConfigField(desc="Limit of allowed account registrations for IP in specified period") protected Integer limit -
period
-
-
Constructor Details
-
RegistrationThrottling
public RegistrationThrottling()
-
-
Method Details
-
startFor
-
stopFor
-
beforeUnregister
public void beforeUnregister()Description copied from interface:UnregisterAware
Method called before bean unregister.- Specified by:
beforeUnregister
in interfaceUnregisterAware
-
checkLimits
-
checkLimits
-
cleanUp
-
cleanUpFromTimer
protected void cleanUpFromTimer() -
scheduleCleanUpIfNeeded
protected void scheduleCleanUpIfNeeded()
-