Class TPSCounter

java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.TPSCounter
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ProxyTPSCounter, ServerTPSCounter

public abstract class TPSCounter extends TaskSystem.Task
Class responsible for calculating TPS every second.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final ErrorLogger
     
    protected final net.playeranalytics.plugin.server.PluginLogger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    TPSCounter(net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
     
    void
    register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
     
    void
    run()
     

    Methods inherited from class net.playeranalytics.plugin.scheduling.PluginRunnable

    cancel

    Methods inherited from class java.lang.Object

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

    • logger

      protected final net.playeranalytics.plugin.server.PluginLogger logger
    • errorLogger

      protected final ErrorLogger errorLogger
  • Constructor Details

    • TPSCounter

      protected TPSCounter(net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
  • Method Details

    • run

      public void run()
    • register

      public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
      Specified by:
      register in class TaskSystem.Task
    • pulse

      public abstract void pulse()