All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.monitoring.ThreadResult Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy