blob: 731fc55793a22936841c2f17fde9193fd5de4545 [file]
package org.apache.jcs.engine.behavior;
import java.io.Serializable;
import org.apache.jcs.engine.behavior.IElementAttributes;
/**
* Description of the Interface
*
* @author asmuts
* @created January 15, 2002
*/
public interface ICacheElement extends Serializable
{
//, Cloneable
/**
* Gets the cacheName attribute of the ICacheElement object
*
* @return The cacheName value
*/
public String getCacheName();
/**
* Gets the key attribute of the ICacheElement object
*
* @return The key value
*/
public Serializable getKey();
/**
* Gets the val attribute of the ICacheElement object
*
* @return The val value
*/
public Serializable getVal();
/**
* Gets the attributes attribute of the ICacheElement object
*
* @return The attributes value
*/
public IElementAttributes getElementAttributes();
/**
* Sets the attributes attribute of the ICacheElement object
*
* @param attr The new attributes value
*/
public void setElementAttributes( IElementAttributes attr );
/**
* Gets the createTime attribute of the ICacheElement object
*
* @return The createTime value
*/
public long getCreateTime();
// allow thread-safe operations.
// public Object clone();
}