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

com.anysoft.cache.Provider Maven / Gradle / Ivy

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

import com.anysoft.util.Watcher;


/**
 * 缓存对象的提供者
 * @author duanyy
 * @since 1.0.6
 * 
 * @version 1.3.0 [20140727 duanyy]
 * - Cachable修正类名为Cacheable
 * 
 * @version 1.5.2 [20141017 duanyy]
 * - 淘汰ChangeAware机制,采用更为通用的Watcher
 * 
 * @version 1.6.3.3 [20150226 duanyy]
 * - 淘汰load(String)方法
 * @version 1.6.4.17 [20151216 duanyy] 
* - 根据sonar建议优化代码
*/ public interface Provider { /** * 装入对象 * @param id 对象ID * @param cacheAllowed 允许装入缓存的对象 * @return data */ public D1 load(String id,boolean cacheAllowed); /** * 注册监控器 * @param watcher */ public void addWatcher(Watcher watcher); /** * 注销监控器 * @param watcher */ public void removeWatcher(Watcher watcher); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy