Package com.djrapitops.plan.gathering
Class ShutdownDataPreservation
- java.lang.Object
-
- net.playeranalytics.plugin.scheduling.PluginRunnable
-
- com.djrapitops.plan.TaskSystem.Task
-
- com.djrapitops.plan.gathering.ShutdownDataPreservation
-
- All Implemented Interfaces:
java.lang.Runnable
@Singleton public class ShutdownDataPreservation extends TaskSystem.Task
-
-
Constructor Summary
Constructors Constructor Description ShutdownDataPreservation(PlanFiles files, Locale locale, DBSystem dbSystem, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
preserveSessionsInCache()
void
register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
void
run()
void
storePreviouslyPreservedSessions()
-
-
-
Constructor Detail
-
ShutdownDataPreservation
@Inject public ShutdownDataPreservation(PlanFiles files, Locale locale, DBSystem dbSystem, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Detail
-
storePreviouslyPreservedSessions
public void storePreviouslyPreservedSessions()
-
run
public void run()
-
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
- Specified by:
register
in classTaskSystem.Task
-
preserveSessionsInCache
public void preserveSessionsInCache()
-
-