?? cacheable.java
字號:
/** * $RCSfile: Cacheable.java,v $ * $Revision: 1.1 $ * $Date: 2002/06/24 18:36:10 $ * * Copyright (C) 1999-2002 CoolServlets, Inc. All rights reserved. * * This software is the proprietary information of CoolServlets, Inc. * Use is subject to license terms. */package com.struts2.framework.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 + -