⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cacheable.java

📁 Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛2.6版本的源程序
💻 JAVA
字号:
/** * $RCSfile: Cacheable.java,v $ * $Revision: 1.2 $ * $Date: 2002/03/09 21:39:33 $ * * Copyright (C) 1999-2001 CoolServlets, Inc. All rights reserved. * * This software is the proprietary information of CoolServlets, Inc. * Use is subject to license terms. */package com.jivesoftware.util;/** * Interface that defines the necessary behavior for objects added to a Cache. * Objects only need to know how big they are (in bytes). That size * should be considered to be a best estimate of how much memory the Object * occupies and may be based on empirical trials or dynamic calculations.<p> * * While the accuracy of the size calculation is important, care should be * taken to minimize the computation time so that cache operations are * speedy. * * @see Cache */public interface Cacheable extends java.io.Serializable {    /**     * Returns the approximate size of the Object in bytes. The size should be     * considered to be a best estimate of how much memory the Object occupies     * and may be based on empirical trials or dynamic calculations.<p>     *     * @return the size of the Object in bytes.     */    public int getCachedSize();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -