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

📄 cachefile.java

📁 berkeleyDB,强大的嵌入式数据,多个数据库的内核
💻 JAVA
字号:
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2001-2004 *	Sleepycat Software.  All rights reserved. * * $Id: CacheFile.java,v 1.3 2004/09/23 17:56:39 mjc Exp $ */package com.sleepycat.db;import com.sleepycat.db.internal.DbConstants;import com.sleepycat.db.internal.DbMpoolFile;public class CacheFile {    private DbMpoolFile mpf;    /* package */    CacheFile(final DbMpoolFile mpf) {        this.mpf = mpf;    }    public CacheFilePriority getPriority()        throws DatabaseException {        return CacheFilePriority.fromFlag(mpf.get_priority());    }    public void setPriority(final CacheFilePriority priority)        throws DatabaseException {        mpf.set_priority(priority.getFlag());    }    public long getMaximumSize()        throws DatabaseException {        return mpf.get_maxsize();    }    public void setMaximumSize(final long bytes)        throws DatabaseException {        mpf.set_maxsize(bytes);    }    public boolean getNoFile()        throws DatabaseException {        return (mpf.get_flags() & DbConstants.DB_MPOOL_NOFILE) != 0;    }    public void setNoFile(final boolean onoff)        throws DatabaseException {        mpf.set_flags(DbConstants.DB_MPOOL_NOFILE, onoff);    }    public boolean getUnlink()        throws DatabaseException {        return (mpf.get_flags() & DbConstants.DB_MPOOL_UNLINK) != 0;    }    public void setUnlink(boolean onoff)        throws DatabaseException {        mpf.set_flags(DbConstants.DB_MPOOL_UNLINK, onoff);    }}

⌨️ 快捷键说明

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