Class TPSCounter
- java.lang.Object
-
- net.playeranalytics.plugin.scheduling.PluginRunnable
-
- com.djrapitops.plan.TaskSystem.Task
-
- com.djrapitops.plan.gathering.timed.TPSCounter
-
- All Implemented Interfaces:
java.lang.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 ErrorLogger
errorLogger
protected net.playeranalytics.plugin.server.PluginLogger
logger
-
Constructor Summary
Constructors Modifier Constructor Description protected
TPSCounter(net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
pulse()
void
register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
void
run()
-
-
-
Field Detail
-
logger
protected final net.playeranalytics.plugin.server.PluginLogger logger
-
errorLogger
protected final ErrorLogger errorLogger
-
-
Constructor Detail
-
TPSCounter
protected TPSCounter(net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Detail
-
run
public void run()
-
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
- Specified by:
register
in classTaskSystem.Task
-
pulse
public abstract void pulse()
-
-