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

com.anysoft.loadbalance.LoadCounter Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.anysoft.loadbalance;

import com.anysoft.util.Counter;


/**
 * 负载统计
 * 
 * @author duanyy
 *
 */
public interface LoadCounter extends Counter {
	
	/**
	 * 获取使用次数(最近的一段周期)
	 * 
	 * @return times
	 */
	public long getTimes();
	
	/**
	 * 获取平均使用时长(最近的一段周期)
	 * @return duration
	 */
	public double getDuration();
	
	/**
	 * 根据计数信息判断是否有效
	 * @return if is valid
	 */
	public boolean isValid();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy