Class AutoSaveTask

java.lang.Object
tech.skworks.tachyon.plugin.spigot.task.AutoSaveTask
All Implemented Interfaces:
Runnable

public class AutoSaveTask extends Object implements Runnable
Project Tachyon Class AutoSaveTask

One chunked sweep that flushes every dirty profile to the backend, processing at most processAmount profiles per tick. A burst of dirty profiles is therefore spread over a few ticks instead of spamming the backend (and stalling the main thread) all at once — and unlike a hard per-cycle cap, every dirty profile is still saved within the cycle.

Since:
1.0.0-SNAPSHOT
Version:
1.0
Author:
Jimmy (vSKAH)
  • Constructor Details

    • AutoSaveTask

      public AutoSaveTask(TachyonCore plugin)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable