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

com.xzchaoo.commons.syncexclusiveexecutor.Limit Maven / Gradle / Ivy

The newest version!
package com.xzchaoo.commons.syncexclusiveexecutor;

/**
 * created at 2020/7/25
 *
 * @author xzchaoo
 */
public class Limit {
    private int maxExecuted;
    private int maxWip;
    private int maxTime;

    public Limit() {
    }

    public Limit(int maxExecuted, int maxWip, int maxTime) {
        this.maxExecuted = maxExecuted;
        this.maxWip = maxWip;
        this.maxTime = maxTime;
    }

    public int getMaxExecuted() {
        return maxExecuted;
    }

    public void setMaxExecuted(int maxExecuted) {
        this.maxExecuted = maxExecuted;
    }

    public int getMaxWip() {
        return maxWip;
    }

    public void setMaxWip(int maxWip) {
        this.maxWip = maxWip;
    }

    public int getMaxTime() {
        return maxTime;
    }

    public void setMaxTime(int maxTime) {
        this.maxTime = maxTime;
    }

    @Override
    public String toString() {
        return "Limit{" +
            "maxExecuted=" + maxExecuted +
            ", maxWip=" + maxWip +
            ", maxTime=" + maxTime +
            '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy