@Singleton public class NukkitTaskSystem extends TaskSystem
runnableFactory
Constructor and Description |
---|
NukkitTaskSystem(PlanNukkit plugin,
PlanConfig config,
ShutdownHook shutdownHook,
com.djrapitops.plugin.task.RunnableFactory runnableFactory,
ServerTPSCounter<cn.nukkit.level.Level> tpsCounter,
NukkitPingCounter pingCounter,
ExtensionServerMethodCallerTask extensionServerMethodCallerTask,
LogsFolderCleanTask logsFolderCleanTask,
ConfigStoreTask configStoreTask,
DBCleanTask dbCleanTask,
JSONCache.CleanTask jsonCacheCleanTask,
SystemUsageBuffer.RamAndCpuTask ramAndCpuTask,
SystemUsageBuffer.DiskTask diskTask) |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Performs disable actions for the subsystem
|
void |
enable()
Performs enable actions for the subsystem.
|
registerTask, registerTask
@Inject public NukkitTaskSystem(PlanNukkit plugin, PlanConfig config, ShutdownHook shutdownHook, com.djrapitops.plugin.task.RunnableFactory runnableFactory, ServerTPSCounter<cn.nukkit.level.Level> tpsCounter, NukkitPingCounter pingCounter, ExtensionServerMethodCallerTask extensionServerMethodCallerTask, LogsFolderCleanTask logsFolderCleanTask, ConfigStoreTask configStoreTask, DBCleanTask dbCleanTask, JSONCache.CleanTask jsonCacheCleanTask, SystemUsageBuffer.RamAndCpuTask ramAndCpuTask, SystemUsageBuffer.DiskTask diskTask)
public void enable()
SubSystem
public void disable()
SubSystem
disable
in interface SubSystem
disable
in class TaskSystem