Class DBCleanTask
- java.lang.Object
-
- net.playeranalytics.plugin.scheduling.PluginRunnable
-
- com.djrapitops.plan.TaskSystem.Task
-
- com.djrapitops.plan.storage.upkeep.DBCleanTask
-
- All Implemented Interfaces:
java.lang.Runnable
@Singleton public class DBCleanTask extends TaskSystem.Task
Task for cleaning the active database.
-
-
Constructor Summary
Constructors Constructor Description DBCleanTask(PlanConfig config, Locale locale, DBSystem dbSystem, QuerySvc queryService, ServerInfo serverInfo, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
cleanOldPlayers(Database database)
void
register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
void
run()
-
-
-
Constructor Detail
-
DBCleanTask
@Inject public DBCleanTask(PlanConfig config, Locale locale, DBSystem dbSystem, QuerySvc queryService, ServerInfo serverInfo, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Detail
-
run
public void run()
-
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
- Specified by:
register
in classTaskSystem.Task
-
cleanOldPlayers
public int cleanOldPlayers(Database database)
-
-