net.minestom.server.monitoring.ThreadResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.monitoring;
public class ThreadResult {
private final double cpuPercentage;
private final double userPercentage;
private final double waitedPercentage;
private final double blockedPercentage;
protected ThreadResult(double cpuPercentage,
double userPercentage,
double waitedPercentage,
double blockedPercentage) {
this.cpuPercentage = cpuPercentage;
this.userPercentage = userPercentage;
this.waitedPercentage = waitedPercentage;
this.blockedPercentage = blockedPercentage;
}
public double getCpuPercentage() {
return cpuPercentage;
}
public double getUserPercentage() {
return userPercentage;
}
public double getWaitedPercentage() {
return waitedPercentage;
}
public double getBlockedPercentage() {
return blockedPercentage;
}
}