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

com.alogic.load.Loadable Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.alogic.load;

import com.anysoft.util.Reportable;

/**
 * 可装入接口
 * 
 * @author duanyy
 *
 */
public interface Loadable extends Reportable{
	/**
	 * 获取缓存对象的ID
	 * 
	 * @return ID
	 */
	public String getId();
	
	/**
	 * 获取对象的时间戳
	 * @return 时间戳
	 */
	public long getTimestamp();
	
	/**
	 * 是否已经过期
	 * @return true if expired, or not return false
	 */
	public boolean isExpired();	
	
	/**
	 * 将该对象失效
	 */
	public void expire();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy