cacheable.java
来自「java编写的数据库连接池的源代码。包含有连接池的源码。」· Java 代码 · 共 19 行
JAVA
19 行
package snaq.util;
/**
* Interface for objects that can be referenced in a cache manager.
* @see snaq.util.CacheManager
* @author Giles Winstanley
*/
public interface Cacheable
{
/**
* Uniquely identifies the object in the cache.
*/
public Object getId();
/**
* Whether the item has expired.
*/
public boolean isExpired();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?