Package com.enhancedechest.telemetry
Class FastStatsTelemetry
java.lang.Object
com.enhancedechest.telemetry.FastStatsTelemetry
- All Implemented Interfaces:
Telemetry
FastStats-backed
Telemetry: one BukkitContext carrying custom metrics and error
tracking. Built through create(org.bukkit.plugin.java.JavaPlugin, com.enhancedechest.config.PluginConfig), which falls back to Telemetry.NOOP when no token
was baked in at build time or the SDK fails to start — so the rest of the plugin never branches.
The metric suppliers are invoked by the SDK off-thread on its own submission schedule; they only
read immutable PluginConfig fields, so they are thread-safe and never touch platform state,
per FastStats supplier rules.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Telemetrycreate(org.bukkit.plugin.java.JavaPlugin plugin, PluginConfig config) Builds the FastStats-backed telemetry, orTelemetry.NOOPwhen the build-time token is absent (seefaststats.properties) or SDK startup throws — telemetry must never be able to take the plugin down.voidReports a handled-but-noteworthy failure (codec corruption, DB save failure, …) to error tracking, alongside the existing log line — never instead of it.voidshutdown()Flushes and stops the backing service.
-
Method Details
-
create
Builds the FastStats-backed telemetry, orTelemetry.NOOPwhen the build-time token is absent (seefaststats.properties) or SDK startup throws — telemetry must never be able to take the plugin down. -
error
Description copied from interface:TelemetryReports a handled-but-noteworthy failure (codec corruption, DB save failure, …) to error tracking, alongside the existing log line — never instead of it.whereis a short static label (e.g."chest.save-db") used to group reports; never put player data in it. Uncaught exceptions are captured automatically and do not need this call. -
shutdown
public void shutdown()Description copied from interface:TelemetryFlushes and stops the backing service. Called once fromonDisable.
-