Class ITask<P extends CodexPlugin<P>>

java.lang.Object
studio.magemonkey.codex.manager.api.task.ITask<P>

public abstract class ITask<P extends CodexPlugin<P>> extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
    protected int
     
    protected final long
     
    protected final P
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ITask(P plugin, int interval, boolean async)
     
    ITask(P plugin, long interval, boolean async)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
     
    int
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • plugin

      @NotNull protected final P extends CodexPlugin<P> plugin
    • interval

      protected final long interval
    • async

      protected final boolean async
    • id

      protected int id
  • Constructor Details

    • ITask

      public ITask(@NotNull P plugin, int interval, boolean async)
    • ITask

      public ITask(@NotNull P plugin, long interval, boolean async)
  • Method Details

    • action

      public abstract void action()
    • start

      public void start()
    • stop

      public void stop()
    • getId

      public int getId()