public abstract class AbstractLimiter<T> extends Component implements pro.gravit.launcher.NeedGarbageCollection, Reconfigurable
| Modifier and Type | Field and Description |
|---|---|
java.util.List<T> |
exclude |
protected java.util.Map<T,pro.gravit.launchserver.components.AbstractLimiter.LimitEntry> |
map |
int |
rateLimit |
int |
rateLimitMillis |
| Constructor and Description |
|---|
AbstractLimiter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(T address) |
void |
garbageCollection() |
java.util.Map<java.lang.String,pro.gravit.utils.command.Command> |
getCommands()
Gets a list of commands available for this object.
|
protected abstract T |
getFromString(java.lang.String str) |
init, postInit, preInit, registerComponentspublic int rateLimit
public int rateLimitMillis
public java.util.List<T> exclude
protected transient java.util.Map<T,pro.gravit.launchserver.components.AbstractLimiter.LimitEntry> map
public java.util.Map<java.lang.String,pro.gravit.utils.command.Command> getCommands()
ReconfigurablegetCommands in interface Reconfigurableprotected abstract T getFromString(java.lang.String str)
public void garbageCollection()
garbageCollection in interface pro.gravit.launcher.NeedGarbageCollectionpublic boolean check(T address)