/* ==================================================================
* Created [2009-4-27 下午11:32:55] by Jon.King
* ==================================================================
* TSS
* ==================================================================
* mailTo:jinpujun@hotmail.com
* Copyright (c) Jon.King, 2009-2012
* ==================================================================
*/
package com.jinhe.tss.core.cachepool;
import org.apache.log4j.Logger;
/**
* <p> DefaultArithmetic.java </p>
*
* 默认的缓存池算法类。
* 算法类中的create(),isValid()方法不做任何操作。
*
* @author Jon.King 2007-1-3
*/
public class DefaultArithmetic implements IArithmetic {
protected Logger log = Logger.getLogger(this.getClass());
public Cacheable create(Long l){
return null;
}
public boolean isValid(Cacheable o){
return true;
}
public void destroy(Cacheable o){
if(o != null){
Object value = o.getValue();
if(value != null) value = null;
o = null;
}
}
}