Class AbstractDataTask

java.lang.Object
net.pl3x.map.core.scheduler.Task
net.pl3x.map.core.renderer.task.AbstractDataTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
UpdateLiveData, UpdateMarkerData

public abstract class AbstractDataTask extends Task
  • Field Details

    • gson

      protected final com.google.gson.Gson gson
    • world

      protected final World world
    • lastUpdated

      protected final Map<@NotNull String,@NotNull Long> lastUpdated
    • executor

      protected final ExecutorService executor
    • executorName

      protected final String executorName
    • future

      protected CompletableFuture<Void> future
    • running

      protected boolean running
  • Constructor Details

    • AbstractDataTask

      public AbstractDataTask(int delay, boolean repeat, World world, String serviceName, int threads)
    • AbstractDataTask

      public AbstractDataTask(int delay, boolean repeat, World world, String serviceName)
  • Method Details

    • run

      public void run()
    • cancel

      public void cancel()
      Description copied from class: Task
      Mark task as cancelled.
      Overrides:
      cancel in class Task
    • parse

      public abstract void parse()