📄 i_cmsflexlrucacheobject.java
字号:
/*
* File : $Source: /usr/local/cvs/opencms/src/com/opencms/flex/util/Attic/I_CmsFlexLruCacheObject.java,v $
* Date : $Date: 2003/02/26 15:19:23 $
* Version: $Revision: 1.4 $
*
* This library is part of OpenCms -
* the Open Source Content Mananagement System
*
* Copyright (C) 2002 - 2003 Alkacon Software (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* For further information about Alkacon Software, please see the
* company website: http://www.alkacon.com
*
* For further information about OpenCms, please see the
* project website: http://www.opencms.org
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package com.opencms.flex.util;
/**
* Defines the methods which an object being cached by CmsFlexLruCache must implement.<p>
*
* CmsFlexLruCache is organized as a double linked list, that's why objects implementing this interface
* need getters/setter for the next/previous nodes in the list of all cached objects.<p>
*
* @see com.opencms.flex.util.CmsFlexLruCache
* @author Thomas Weckert (t.weckert@alkacon.com)
* @version $Revision: 1.4 $
*/
public interface I_CmsFlexLruCacheObject {
/**
* Set the next object in the double linked list of all cached objects.<p>
*
* @param theNextObject the next object
*/
public void setNextLruObject( I_CmsFlexLruCacheObject theNextObject );
/**
* Returns the next object in the double linked list of all cached objects.<p>
*
* @return the next object in the double linked list of all cached objects
*/
public I_CmsFlexLruCacheObject getNextLruObject();
/**
* Set the previous object in the double linked list of all cached objects.<p>
*
* @param thePreviousObject the previous object
*/
public void setPreviousLruObject( I_CmsFlexLruCacheObject thePreviousObject );
/**
* Returns the previous object in the double linked list of all cached objects.<p>
*
* @return the previous object in the double linked list of all cached objects
*/
public I_CmsFlexLruCacheObject getPreviousLruObject();
/**
* Invoked after an object was added to the cache.<p>
*/
public void addToLruCache();
/**
* Invoked after the object was removed to the cache.<p>
*/
public void removeFromLruCache();
/**
* Returns the cache costs of this object, as for example it's byte size.<p>
*
* @return the cache costs of this object
*/
public int getLruCacheCosts();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -