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

com.alibaba.boot.dubbo.ratelimiting.Rate Maven / Gradle / Ivy

There is a newer version: 1.5.33
Show newest version
package com.alibaba.boot.dubbo.ratelimiting;

import java.io.Serializable;
import java.util.Date;
import java.util.concurrent.atomic.AtomicLong;

/**
 * Created by wuyu on 2017/5/6.
 */
public class Rate implements Serializable{

    private static final long serialVersionUID = 1927816293512124L;


    private String timeUnit;

    private Date time;

    private AtomicLong atomicLong = new AtomicLong(0);

    public Date getTime() {
        return time;
    }

    public Rate setTime(Date time) {
        this.time = time;
        return this;
    }

    public String getTimeUnit() {
        return timeUnit;
    }

    public Rate setTimeUnit(String timeUnit) {
        this.timeUnit = timeUnit;
        return this;
    }

    public AtomicLong getAtomicLong() {
        return atomicLong;
    }

    public Rate setAtomicLong(AtomicLong atomicLong) {
        this.atomicLong = atomicLong;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy