Class AbstractLimiter<T>
java.lang.Object
pro.gravit.launchserver.components.Component
pro.gravit.launchserver.components.AbstractLimiter<T>
- All Implemented Interfaces:
pro.gravit.launcher.NeedGarbageCollection,Reconfigurable
- Direct Known Subclasses:
IPLimiter
public abstract class AbstractLimiter<T>
extends Component
implements pro.gravit.launcher.NeedGarbageCollection, Reconfigurable
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintFields inherited from class pro.gravit.launchserver.components.Component
componentName, providers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidGets a list of commands available for this object.protected abstract TgetFromString(String str)Methods inherited from class pro.gravit.launchserver.components.Component
init, postInit, preInit, registerComponents, setComponentNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.gravit.launchserver.Reconfigurable
defaultCommandsMap
-
Field Details
-
exclude
-
map
-
rateLimit
public int rateLimit -
rateLimitMillis
public int rateLimitMillis
-
-
Constructor Details
-
AbstractLimiter
public AbstractLimiter()
-
-
Method Details
-
getCommands
Description copied from interface:ReconfigurableGets a list of commands available for this object.- Specified by:
getCommandsin interfaceReconfigurable- Returns:
- Key - Command Name Value is a command object
-
getFromString
-
garbageCollection
public void garbageCollection()- Specified by:
garbageCollectionin interfacepro.gravit.launcher.NeedGarbageCollection
-
check
-