@Test public void testCacheWeakRefEnable() throws Exception { DB db = DBMaker .newMemoryDB() .journalDisable() .cacheWeakRefEnable() .make(); verifyDB(db); assertTrue(db.engine.getClass() == CacheWeakSoftRef.class); assertTrue(((CacheWeakSoftRef)db.engine).useWeakRef); }
public DBMaker cacheWeakRefEnable(){ this._cache = CACHE_WEAK_REF; return this; }
DBMaker { public DBMaker cacheWeakRefEnable(){ this._cache = CACHE_WEAK_REF; return this; } }
DBMaker { public DBMaker cacheWeakRefEnable(){ this._cache = CACHE_WEAK_REF; return this; } protected  DBMaker(); }
DBMaker { public DBMaker cacheWeakRefEnable(){ this._cache = CACHE_WEAK_REF; return this; } protected  DBMaker(); static DBMaker newMemoryDB(); static DBMaker newDirectMemoryDB(); static DBMaker newAppendFileDB(File file); static BTreeMap<K,V> newTempTreeMap(); static HTreeMap<K,V> newTempHashMap(); static NavigableSet<K> newTempTreeSet(); static Set<K> newTempHashSet(); static DBMaker newTempFileDB(); static DBMaker newFileDB(File file); DBMaker journalDisable(); DBMaker cacheDisable(); DBMaker cacheHardRefEnable(); DBMaker cacheWeakRefEnable(); DBMaker cacheSoftRefEnable(); DBMaker cacheLRUEnable(); DBMaker randomAccessFileEnable(); DBMaker randomAccessFileEnableIfNeeded(); DBMaker cacheSize(int cacheSize); DBMaker asyncWriteDisable(); DBMaker asyncFlushDelay(int delay); DBMaker deleteFilesAfterClose(); DBMaker closeOnJvmShutdown(); DBMaker compressionEnable(); DBMaker encryptionEnable(String password); DBMaker encryptionEnable(byte[] password); DBMaker checksumEnable(); DBMaker readOnly(); DBMaker freeSpaceReclaimDisable(); DBMaker powerSavingModeEnable(); DB make(); TxMaker makeTxMaker(); Engine makeEngine(); }
DBMaker { public DBMaker cacheWeakRefEnable(){ this._cache = CACHE_WEAK_REF; return this; } protected  DBMaker(); static DBMaker newMemoryDB(); static DBMaker newDirectMemoryDB(); static DBMaker newAppendFileDB(File file); static BTreeMap<K,V> newTempTreeMap(); static HTreeMap<K,V> newTempHashMap(); static NavigableSet<K> newTempTreeSet(); static Set<K> newTempHashSet(); static DBMaker newTempFileDB(); static DBMaker newFileDB(File file); DBMaker journalDisable(); DBMaker cacheDisable(); DBMaker cacheHardRefEnable(); DBMaker cacheWeakRefEnable(); DBMaker cacheSoftRefEnable(); DBMaker cacheLRUEnable(); DBMaker randomAccessFileEnable(); DBMaker randomAccessFileEnableIfNeeded(); DBMaker cacheSize(int cacheSize); DBMaker asyncWriteDisable(); DBMaker asyncFlushDelay(int delay); DBMaker deleteFilesAfterClose(); DBMaker closeOnJvmShutdown(); DBMaker compressionEnable(); DBMaker encryptionEnable(String password); DBMaker encryptionEnable(byte[] password); DBMaker checksumEnable(); DBMaker readOnly(); DBMaker freeSpaceReclaimDisable(); DBMaker powerSavingModeEnable(); DB make(); TxMaker makeTxMaker(); Engine makeEngine();  }