Class ServerTPSCounter<W>
- java.lang.Object
-
- net.playeranalytics.plugin.scheduling.PluginRunnable
-
- com.djrapitops.plan.TaskSystem.Task
-
- com.djrapitops.plan.gathering.timed.TPSCounter
-
- com.djrapitops.plan.gathering.timed.ServerTPSCounter<W>
-
- All Implemented Interfaces:
java.lang.Runnable
@Singleton public class ServerTPSCounter<W> extends TPSCounter
TPSCounter extension for game server platforms.
-
-
Field Summary
-
Fields inherited from class com.djrapitops.plan.gathering.timed.TPSCounter
errorLogger, logger
-
-
Constructor Summary
Constructors Constructor Description ServerTPSCounter(ServerSensor<W> serverSensor, SystemUsageBuffer systemUsage, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
pulse()
java.util.Optional<java.lang.Double>
pulseTPS(long time)
-
Methods inherited from class com.djrapitops.plan.gathering.timed.TPSCounter
register, run
-
-
-
-
Constructor Detail
-
ServerTPSCounter
@Inject public ServerTPSCounter(ServerSensor<W> serverSensor, SystemUsageBuffer systemUsage, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Detail
-
pulse
public void pulse()
- Specified by:
pulse
in classTPSCounter
-
pulseTPS
public java.util.Optional<java.lang.Double> pulseTPS(long time)
-
-