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

eu.ginere.base.util.dao.cache.KeyCacheObject Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
package eu.ginere.base.util.dao.cache;

import eu.ginere.base.util.dao.KeyDTO;
import eu.ginere.base.util.dao.LastUpdateDTO;

/**
 * @author ventura
 *
 * This is for objects that can be identified by one uniq ID
 */
public interface KeyCacheObject extends KeyDTO,LastUpdateDTO {
	
	public void setNeedToUpdate();

	public void setUpdated();
	
	public boolean isNeedToBeUpdated();
	
//	public long lastUpdate();

	public void access();
	
	public long lastAccess();
	
	/**
	 * use this method to return false to avoid one object to be purged.
	 * Vor example to avoid to purge one Commet Boc when there are chils listening on it 
	 */
	public boolean canPurge();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy